rrails 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Changes.md CHANGED
@@ -1,4 +1,11 @@
1
+ v1.0.2 2012-11-29 09:17:00 +0900
2
+ ------------------------------------------------------------------------
3
+ - FIX: support using rrails with rspec command.(thanks quark-zju)
4
+ - FIX: fixed dependency. rrails is dependend on rails 3.2 or above.
5
+
1
6
  v1.0.1 2012-10-21 23:58:00 +0900
7
+ ------------------------------------------------------------------------
8
+ - FEATURE: config file suport. you can put config file at conf/rrails.yml and auto loaded.(thanks quark-zju)
2
9
  - FEATURE: config file suport. you can put config file at conf/rrails.yml and auto loaded.(thanks quark-zju)
3
10
  - MOD: support using gem's command. (for example you can use annotate command on rrails.) (thanks quark-zju)
4
11
  - FIX: uninitialized constant warnings when reloading rrails fixed. (thanks quark-zju)
data/Gemfile CHANGED
@@ -5,6 +5,8 @@ source "http://rubygems.org"
5
5
 
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
+ gem "rails", ">= 3.2"
9
+
8
10
  group :development do
9
11
  gem "shoulda", ">= 0"
10
12
  gem "rdoc", "~> 3.12"
data/Gemfile.lock CHANGED
@@ -1,14 +1,75 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ actionmailer (3.2.8)
5
+ actionpack (= 3.2.8)
6
+ mail (~> 2.4.4)
7
+ actionpack (3.2.8)
8
+ activemodel (= 3.2.8)
9
+ activesupport (= 3.2.8)
10
+ builder (~> 3.0.0)
11
+ erubis (~> 2.7.0)
12
+ journey (~> 1.0.4)
13
+ rack (~> 1.4.0)
14
+ rack-cache (~> 1.2)
15
+ rack-test (~> 0.6.1)
16
+ sprockets (~> 2.1.3)
17
+ activemodel (3.2.8)
18
+ activesupport (= 3.2.8)
19
+ builder (~> 3.0.0)
20
+ activerecord (3.2.8)
21
+ activemodel (= 3.2.8)
22
+ activesupport (= 3.2.8)
23
+ arel (~> 3.0.2)
24
+ tzinfo (~> 0.3.29)
25
+ activeresource (3.2.8)
26
+ activemodel (= 3.2.8)
27
+ activesupport (= 3.2.8)
28
+ activesupport (3.2.8)
29
+ i18n (~> 0.6)
30
+ multi_json (~> 1.0)
31
+ arel (3.0.2)
32
+ builder (3.0.0)
33
+ erubis (2.7.0)
4
34
  git (1.2.5)
35
+ hike (1.2.1)
36
+ i18n (0.6.0)
5
37
  jeweler (1.8.3)
6
38
  bundler (~> 1.0)
7
39
  git (>= 1.2.5)
8
40
  rake
9
41
  rdoc
42
+ journey (1.0.4)
10
43
  json (1.6.6)
44
+ mail (2.4.4)
45
+ i18n (>= 0.4.0)
46
+ mime-types (~> 1.16)
47
+ treetop (~> 1.4.8)
48
+ mime-types (1.19)
11
49
  multi_json (1.3.2)
50
+ polyglot (0.3.3)
51
+ rack (1.4.1)
52
+ rack-cache (1.2)
53
+ rack (>= 0.4)
54
+ rack-ssl (1.3.2)
55
+ rack
56
+ rack-test (0.6.1)
57
+ rack (>= 1.0)
58
+ rails (3.2.8)
59
+ actionmailer (= 3.2.8)
60
+ actionpack (= 3.2.8)
61
+ activerecord (= 3.2.8)
62
+ activeresource (= 3.2.8)
63
+ activesupport (= 3.2.8)
64
+ bundler (~> 1.0)
65
+ railties (= 3.2.8)
66
+ railties (3.2.8)
67
+ actionpack (= 3.2.8)
68
+ activesupport (= 3.2.8)
69
+ rack-ssl (~> 1.3.2)
70
+ rake (>= 0.8.7)
71
+ rdoc (~> 3.4)
72
+ thor (>= 0.14.6, < 2.0)
12
73
  rake (0.9.2.2)
13
74
  rdoc (3.12)
14
75
  json (~> 1.4)
@@ -21,6 +82,16 @@ GEM
21
82
  multi_json (~> 1.0)
22
83
  simplecov-html (~> 0.5.3)
23
84
  simplecov-html (0.5.3)
85
+ sprockets (2.1.3)
86
+ hike (~> 1.2)
87
+ rack (~> 1.0)
88
+ tilt (~> 1.1, != 1.3.0)
89
+ thor (0.16.0)
90
+ tilt (1.3.3)
91
+ treetop (1.4.10)
92
+ polyglot
93
+ polyglot (>= 0.3.1)
94
+ tzinfo (0.3.33)
24
95
 
25
96
  PLATFORMS
26
97
  ruby
@@ -28,6 +99,7 @@ PLATFORMS
28
99
  DEPENDENCIES
29
100
  bundler
30
101
  jeweler (~> 1.8.3)
102
+ rails (>= 3.2)
31
103
  rdoc (~> 3.12)
32
104
  shoulda
33
105
  simplecov
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
data/lib/rrails/server.rb CHANGED
@@ -270,13 +270,22 @@ module RemoteRails
270
270
  ::Rake.application.run
271
271
  else
272
272
  # unknown binary, try to locate its location
273
- bin_path = begin
274
- Gem.bin_path(cmd)
275
- rescue
276
- STDERR.puts "rrails: command not found: #{cmd}"
277
- STDERR.puts "Install missing gem executables with `bundle install`"
278
- exit(127)
279
- end
273
+ # try cmd and "#{cmd}-core" as gem names
274
+ # rspec is in the gem named 'rspec-core'
275
+ bin_path = nil
276
+ [cmd, "#{cmd}-core"].each do |gem|
277
+ begin
278
+ bin_path = Gem.bin_path(gem, cmd)
279
+ break
280
+ rescue
281
+ end
282
+ end
283
+
284
+ if not bin_path
285
+ STDERR.puts "rrails: command not found: #{cmd}"
286
+ STDERR.puts "Install missing gem executables with `bundle install`"
287
+ exit(127)
288
+ end
280
289
 
281
290
  # then load it
282
291
  load bin_path
data/rrails.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "rrails"
8
- s.version = "1.1.0"
8
+ s.version = "1.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Keiji, Yoshimi"]
12
- s.date = "2012-10-21"
12
+ s.date = "2012-11-29"
13
13
  s.description = "remote run rails/rake command"
14
14
  s.email = "walf443@gmail.com"
15
15
  s.executables = ["rrails", "rrails-server"]
@@ -46,12 +46,14 @@ Gem::Specification.new do |s|
46
46
  s.specification_version = 3
47
47
 
48
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_runtime_dependency(%q<rails>, [">= 3.2"])
49
50
  s.add_development_dependency(%q<shoulda>, [">= 0"])
50
51
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
51
52
  s.add_development_dependency(%q<bundler>, [">= 0"])
52
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
53
54
  s.add_development_dependency(%q<simplecov>, [">= 0"])
54
55
  else
56
+ s.add_dependency(%q<rails>, [">= 3.2"])
55
57
  s.add_dependency(%q<shoulda>, [">= 0"])
56
58
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
57
59
  s.add_dependency(%q<bundler>, [">= 0"])
@@ -59,6 +61,7 @@ Gem::Specification.new do |s|
59
61
  s.add_dependency(%q<simplecov>, [">= 0"])
60
62
  end
61
63
  else
64
+ s.add_dependency(%q<rails>, [">= 3.2"])
62
65
  s.add_dependency(%q<shoulda>, [">= 0"])
63
66
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
64
67
  s.add_dependency(%q<bundler>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,24 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-21 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
14
30
  - !ruby/object:Gem::Dependency
15
31
  name: shoulda
16
32
  requirement: !ruby/object:Gem::Requirement
@@ -133,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
149
  version: '0'
134
150
  segments:
135
151
  - 0
136
- hash: 3781868682991120205
152
+ hash: -3976304295662089915
137
153
  required_rubygems_version: !ruby/object:Gem::Requirement
138
154
  none: false
139
155
  requirements: