engine_cart 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 813b3a634c45dead4343d6bcea735499e70e930d
4
- data.tar.gz: a3f6f5a013a9e978c8807c2aca3578fe5d5c38a3
3
+ metadata.gz: 5f28543af73fa3b449e7c281dd0c78c246f309a8
4
+ data.tar.gz: 70a199300e135a1515d7418dece040f52bcecf0a
5
5
  SHA512:
6
- metadata.gz: c8db75de72d6e85d16e0617105d561e87c9f3615c6d2c43d4b2a6eda11948d9f20d11af40398c750c8683cb5598c1dc87d91072722bd45fea0b850403f0e0ca7
7
- data.tar.gz: d588131b98de57585e760109c3c339c9859e11e624e52f1c070c6e3110356cee19596a5f82a5f42360867429f5eccef532a6bfa0f5195f77c88dd76a1bff6028
6
+ metadata.gz: 97405b00fbe71928e8d86b1f5d871b03013f89956c6ae6558b6b839adb9cd60040e0b805b7ca35cb1ec3ecca733ddd71bc41adb0c03f47d64e32027fa89258d6
7
+ data.tar.gz: 8e623d22dcd438356d3fa834c082a4317eef5b93c6afedc2fa4749c3cf11c38cdaa4984e2eb34dd43819387f735547cc8b90e2f3dd8e36fa1de84e11762f22e9
data/.travis.yml CHANGED
@@ -1,5 +1,9 @@
1
1
  language: ruby
2
2
  sudo: false
3
3
  rvm:
4
- - 1.9.3
5
- - 2.2.0
4
+ - 2.2.2
5
+
6
+ matrix:
7
+ include:
8
+ - rvm: '2.2.2'
9
+ env: "RAILS_VERSION=4.1.13"
data/Gemfile CHANGED
@@ -3,6 +3,6 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in engine_cart.gemspec
4
4
  gemspec
5
5
 
6
- gem 'rails'
6
+ gem 'rails', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
7
7
  gem 'sass', '~> 3.2.15'
8
8
  gem 'sprockets', '~> 2.11.0'
data/Rakefile CHANGED
@@ -10,7 +10,17 @@ end
10
10
 
11
11
  task :generate_test_gem => ['engine_cart:setup'] do
12
12
  system("rm -rf spec/internal")
13
- system("rails plugin new spec/internal_gem")
13
+ gem 'rails'
14
+
15
+ version = if Gem.loaded_specs["rails"]
16
+ "_#{Gem.loaded_specs["rails"].version}_"
17
+ end
18
+
19
+ Bundler.with_clean_env do
20
+ system("rails #{version} plugin new spec/internal_gem")
21
+ end
22
+
23
+ IO.write("spec/internal_gem/internal_gem.gemspec", File.open("spec/internal_gem/internal_gem.gemspec") {|f| f.read.gsub(/FIXME/, "DONTCARE")})
14
24
  IO.write("spec/internal_gem/internal_gem.gemspec", File.open("spec/internal_gem/internal_gem.gemspec") {|f| f.read.gsub(/TODO/, "DONTCARE")})
15
25
  IO.write("spec/internal_gem/internal_gem.gemspec", File.open("spec/internal_gem/internal_gem.gemspec") {|f| f.read.gsub(/.*homepage.*/, "")})
16
26
 
@@ -44,12 +44,19 @@ namespace :engine_cart do
44
44
  Rake::Task['engine_cart:clean'].invoke if File.exist? EngineCart.destination
45
45
  FileUtils.move "#{dir}/internal", "#{EngineCart.destination}"
46
46
 
47
- # Hack for https://github.com/rails/web-console/issues/150
48
- IO.write("spec/internal/Gemfile", File.open("spec/internal/Gemfile") do |f|
49
- f.read.gsub(/.*web-console.*/, "").gsub(/.*IRB console on exception pages.*/, "")
50
- end)
51
- File.open("spec/internal/Gemfile", "a") do |f|
52
- f.puts 'gem "web-console", group: :development'
47
+ if Gem.loaded_specs["rails"].version.to_s < '4.2.4'
48
+ has_web_console = false
49
+
50
+ # Hack for https://github.com/rails/web-console/issues/150
51
+ IO.write("spec/internal/Gemfile", File.open("spec/internal/Gemfile") do |f|
52
+ text = f.read
53
+ has_web_console = text.match('web-console')
54
+ text.gsub(/.*web-console.*/, "").gsub(/.*IRB console on exception pages.*/, "")
55
+ end)
56
+
57
+ File.open("spec/internal/Gemfile", "a") do |f|
58
+ f.puts 'gem "web-console", group: :development'
59
+ end if has_web_console
53
60
  end
54
61
  end
55
62
  end
@@ -1,3 +1,3 @@
1
1
  module EngineCart
2
- VERSION = "0.7.0"
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engine_cart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-10 00:00:00.000000000 Z
11
+ date: 2015-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - ">="
16
+ - - '>='
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0'
20
- type: :runtime
19
+ name: rails
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: '1.3'
34
- type: :runtime
33
+ name: bundler
35
34
  prerelease: false
35
+ type: :runtime
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - ">="
44
+ - - '>='
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
- type: :development
47
+ name: rake
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ">="
58
+ - - '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- type: :development
61
+ name: rspec
63
62
  prerelease: false
63
+ type: :development
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: Helper for testing Rails Engines sanely
@@ -73,8 +73,8 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
77
- - ".travis.yml"
76
+ - .gitignore
77
+ - .travis.yml
78
78
  - Gemfile
79
79
  - LICENSE.txt
80
80
  - README.md
@@ -92,24 +92,24 @@ homepage: https://github.com/cbeer/engine_cart
92
92
  licenses:
93
93
  - MIT
94
94
  metadata: {}
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
99
99
  required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - ">="
106
+ - - '>='
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubyforge_project:
111
- rubygems_version: 2.4.5
112
- signing_key:
110
+ rubyforge_project:
111
+ rubygems_version: 2.4.6
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: Helper for testing Rails Engines sanely
115
115
  test_files: