lib/react_on_rails/version_checker.rb
def raise_if_gem_and_node_package_versions_differ
      return if node_package_version.relative_path?

      node_major_minor_patch = node_package_version.major_minor_patch
      gem_major_minor_patch = gem_major_minor_patch_version
      versions_match = node_major_minor_patch[0] == gem_major_minor_patch[0] &&
                       node_major_minor_patch[1] == gem_major_minor_patch[1] &&
                       node_major_minor_patch[2] == gem_major_minor_patch[2]

      raise_differing_versions_warning unless versions_match

      raise_node_semver_version_warning if node_package_version.semver_wildcard?
    end
# For compatibility, the gem and the node package versions should always match,
# unless the user really knows what they're doing. So we will give a
# warning if they do not.
For compatibility, the gem and the node package versions should always match,
unless the user really knows what they're doing. So we will give a
warning if they do not.
For compatibility the gem and the node package versions should always match unless the user really knows what they ' re doing . So we will give a warning if they do not .
def raise_if_gem_and_node_package_versions_differ
      return if node_package_version.relative_path?
      node_major_minor_patch = node_package_version.major_minor_patch
      gem_major_minor_patch = gem_major_minor_patch_version
      versions_match = node_major_minor_patch[0] == gem_major_minor_patch[0] &&
                       node_major_minor_patch[1] == gem_major_minor_patch[1] &&
                       node_major_minor_patch[2] == gem_major_minor_patch[2]
      raise_differing_versions_warning unless versions_match
      raise_node_semver_version_warning if node_package_version.semver_wildcard?
    end
def raise_if_gem_and_node_package_versions_differ return if node_package_version . relative_path? node_major_minor_patch = node_package_version . major_minor_patch gem_major_minor_patch = gem_major_minor_patch_version versions_match = node_major_minor_patch [ 0 ] == gem_major_minor_patch [ 0 ] && node_major_minor_patch [ 1 ] == gem_major_minor_patch [ 1 ] && node_major_minor_patch [ 2 ] == gem_major_minor_patch [ 2 ] raise_differing_versions_warning unless versions_match raise_node_semver_version_warning if node_package_version . semver_wildcard? end
For compatibility, the gem and the node package versions should always match,
unless the user really knows what they're doing.
For compatibility the gem and the node package versions should always match unless the user really knows what they ' re doing .