chromembed_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ gem "rails", ">= 3.0.0"
8
8
  # Include everything needed to run rake, tests, features, etc.
9
9
  group :development do
10
10
  gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
11
+ gem "jeweler", "~> 1.6.0"
12
12
  gem "mocha", ">= 0.9.12"
13
13
  gem "rcov", ">= 0"
14
14
  gem "sqlite3", ">= 1.3.3"
data/Gemfile.lock CHANGED
@@ -2,32 +2,32 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  abstract (1.0.0)
5
- actionmailer (3.0.5)
6
- actionpack (= 3.0.5)
5
+ actionmailer (3.0.7)
6
+ actionpack (= 3.0.7)
7
7
  mail (~> 2.2.15)
8
- actionpack (3.0.5)
9
- activemodel (= 3.0.5)
10
- activesupport (= 3.0.5)
8
+ actionpack (3.0.7)
9
+ activemodel (= 3.0.7)
10
+ activesupport (= 3.0.7)
11
11
  builder (~> 2.1.2)
12
12
  erubis (~> 2.6.6)
13
- i18n (~> 0.4)
13
+ i18n (~> 0.5.0)
14
14
  rack (~> 1.2.1)
15
- rack-mount (~> 0.6.13)
15
+ rack-mount (~> 0.6.14)
16
16
  rack-test (~> 0.5.7)
17
17
  tzinfo (~> 0.3.23)
18
- activemodel (3.0.5)
19
- activesupport (= 3.0.5)
18
+ activemodel (3.0.7)
19
+ activesupport (= 3.0.7)
20
20
  builder (~> 2.1.2)
21
- i18n (~> 0.4)
22
- activerecord (3.0.5)
23
- activemodel (= 3.0.5)
24
- activesupport (= 3.0.5)
21
+ i18n (~> 0.5.0)
22
+ activerecord (3.0.7)
23
+ activemodel (= 3.0.7)
24
+ activesupport (= 3.0.7)
25
25
  arel (~> 2.0.2)
26
26
  tzinfo (~> 0.3.23)
27
- activeresource (3.0.5)
28
- activemodel (= 3.0.5)
29
- activesupport (= 3.0.5)
30
- activesupport (3.0.5)
27
+ activeresource (3.0.7)
28
+ activemodel (= 3.0.7)
29
+ activesupport (= 3.0.7)
30
+ activesupport (3.0.7)
31
31
  arel (2.0.9)
32
32
  builder (2.1.2)
33
33
  crxmake (2.0.3)
@@ -36,11 +36,11 @@ GEM
36
36
  abstract (>= 1.0.0)
37
37
  git (1.2.5)
38
38
  i18n (0.5.0)
39
- jeweler (1.5.2)
39
+ jeweler (1.6.0)
40
40
  bundler (~> 1.0.0)
41
41
  git (>= 1.2.5)
42
42
  rake
43
- mail (2.2.15)
43
+ mail (2.2.19)
44
44
  activesupport (>= 2.3.6)
45
45
  i18n (>= 0.4.0)
46
46
  mime-types (~> 1.16)
@@ -53,17 +53,17 @@ GEM
53
53
  rack (>= 1.0.0)
54
54
  rack-test (0.5.7)
55
55
  rack (>= 1.0)
56
- rails (3.0.5)
57
- actionmailer (= 3.0.5)
58
- actionpack (= 3.0.5)
59
- activerecord (= 3.0.5)
60
- activeresource (= 3.0.5)
61
- activesupport (= 3.0.5)
56
+ rails (3.0.7)
57
+ actionmailer (= 3.0.7)
58
+ actionpack (= 3.0.7)
59
+ activerecord (= 3.0.7)
60
+ activeresource (= 3.0.7)
61
+ activesupport (= 3.0.7)
62
62
  bundler (~> 1.0)
63
- railties (= 3.0.5)
64
- railties (3.0.5)
65
- actionpack (= 3.0.5)
66
- activesupport (= 3.0.5)
63
+ railties (= 3.0.7)
64
+ railties (3.0.7)
65
+ actionpack (= 3.0.7)
66
+ activesupport (= 3.0.7)
67
67
  rake (>= 0.8.7)
68
68
  thor (~> 0.14.4)
69
69
  rake (0.8.7)
@@ -72,7 +72,7 @@ GEM
72
72
  thor (0.14.6)
73
73
  treetop (1.4.9)
74
74
  polyglot (>= 0.3.1)
75
- tzinfo (0.3.25)
75
+ tzinfo (0.3.27)
76
76
  zipruby (0.3.6)
77
77
 
78
78
  PLATFORMS
@@ -81,7 +81,7 @@ PLATFORMS
81
81
  DEPENDENCIES
82
82
  bundler (~> 1.0.0)
83
83
  crxmake (>= 2.0.3)
84
- jeweler (~> 1.5.2)
84
+ jeweler (~> 1.6.0)
85
85
  mocha (>= 0.9.12)
86
86
  rails (>= 3.0.0)
87
87
  rcov
data/README.rdoc CHANGED
@@ -2,6 +2,33 @@
2
2
 
3
3
  Rails Engine for applications that are strongly coupled to Chrome extensions.
4
4
 
5
+ == Features
6
+
7
+ This engine automates the scenario where you have a Chrome extension to accompany your Web application, and you'd like to deploy the extension in lock-step with your application.
8
+
9
+ If you need to use experimental APIs in your extension, you will also have to self-host your extension. This engine reduces the pain of hosting.
10
+
11
+ The engine adds the following routes to your application:
12
+
13
+ * chrome_extension.crx serves your extension, readily packaged for installation
14
+ * chrome_extension/update.xml works with Chrome's auto-update engine
15
+
16
+ == Usage
17
+
18
+ Add the engine gem to your Gemfile
19
+
20
+ gem 'chromembed_rails', '>= 0.1.0'
21
+
22
+ Run the generator to get your application set up.
23
+
24
+ rails g chromembed:all
25
+
26
+ Develop your Chrome extension in the desktop/chrome_extension directory. Alternatively, tweak config/initializers/chrome_extension.rb to reflect your extension's path.
27
+
28
+ You can use chrome_extension_path in your views, to prompt your users to download the extension.
29
+
30
+ When you have an updated version of your extension that you'd like to push to your users, bump the version number in the extension's manifest.json.
31
+
5
32
  == Contributing to chromembed_rails
6
33
 
7
34
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
@@ -14,6 +41,4 @@ Rails Engine for applications that are strongly coupled to Chrome extensions.
14
41
 
15
42
  == Copyright
16
43
 
17
- Copyright (c) 2011 Victor Costan. See LICENSE.txt for
18
- further details.
19
-
44
+ Copyright (c) 2011 Victor Costan. See LICENSE.txt for further details.
data/Rakefile CHANGED
@@ -19,15 +19,7 @@ Jeweler::Tasks.new do |gem|
19
19
  gem.description = %Q{Ruby on Rails engine for Web applications that are strongly coupled with Chrome extensions}
20
20
  gem.email = "costan@gmail.com"
21
21
  gem.authors = ["Victor Costan"]
22
- # Include your dependencies below. Runtime dependencies are required when using your gem,
23
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- gem.add_runtime_dependency 'crxmake', '>= 2.0.3'
25
- gem.add_runtime_dependency 'rails', '>= 3.0.0'
26
- gem.add_development_dependency 'bundler', '~> 1.0.0'
27
- gem.add_development_dependency 'jeweler', '~> 1.5.2'
28
- gem.add_development_dependency 'mocha', '~> 0.9.12'
29
- gem.add_development_dependency 'rcov', '>= 0'
30
- gem.add_development_dependency 'sqlite3', '>= 1.3.3'
22
+ # Dependencies in Gemfile.
31
23
  end
32
24
  Jeweler::RubygemsDotOrgTasks.new
33
25
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{chromembed_rails}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Victor Costan"]
12
- s.date = %q{2011-03-30}
11
+ s.authors = [%q{Victor Costan}]
12
+ s.date = %q{2011-05-15}
13
13
  s.description = %q{Ruby on Rails engine for Web applications that are strongly coupled with Chrome extensions}
14
14
  s.email = %q{costan@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -53,20 +53,10 @@ Gem::Specification.new do |s|
53
53
  "test/test_helper.rb"
54
54
  ]
55
55
  s.homepage = %q{http://github.com/pwnall/chromembed_rails}
56
- s.licenses = ["MIT"]
57
- s.require_paths = ["lib"]
58
- s.rubygems_version = %q{1.5.3}
56
+ s.licenses = [%q{MIT}]
57
+ s.require_paths = [%q{lib}]
58
+ s.rubygems_version = %q{1.8.2}
59
59
  s.summary = %q{Serves a Chrome extension embedded in a Rails application}
60
- s.test_files = [
61
- "test/chrome_extension_cache_test.rb",
62
- "test/chrome_extension_controller_test.rb",
63
- "test/helpers/application_controller.rb",
64
- "test/helpers/db_setup.rb",
65
- "test/helpers/initializers.rb",
66
- "test/helpers/routes.rb",
67
- "test/routes_test.rb",
68
- "test/test_helper.rb"
69
- ]
70
60
 
71
61
  if s.respond_to? :specification_version then
72
62
  s.specification_version = 3
@@ -75,48 +65,27 @@ Gem::Specification.new do |s|
75
65
  s.add_runtime_dependency(%q<crxmake>, [">= 2.0.3"])
76
66
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
77
67
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
78
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
68
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.0"])
79
69
  s.add_development_dependency(%q<mocha>, [">= 0.9.12"])
80
70
  s.add_development_dependency(%q<rcov>, [">= 0"])
81
71
  s.add_development_dependency(%q<sqlite3>, [">= 1.3.3"])
82
- s.add_runtime_dependency(%q<crxmake>, [">= 2.0.3"])
83
- s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
84
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
85
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
86
- s.add_development_dependency(%q<mocha>, ["~> 0.9.12"])
87
- s.add_development_dependency(%q<rcov>, [">= 0"])
88
- s.add_development_dependency(%q<sqlite3>, [">= 1.3.3"])
89
72
  else
90
73
  s.add_dependency(%q<crxmake>, [">= 2.0.3"])
91
74
  s.add_dependency(%q<rails>, [">= 3.0.0"])
92
75
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
93
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
76
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
94
77
  s.add_dependency(%q<mocha>, [">= 0.9.12"])
95
78
  s.add_dependency(%q<rcov>, [">= 0"])
96
79
  s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
97
- s.add_dependency(%q<crxmake>, [">= 2.0.3"])
98
- s.add_dependency(%q<rails>, [">= 3.0.0"])
99
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
100
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
101
- s.add_dependency(%q<mocha>, ["~> 0.9.12"])
102
- s.add_dependency(%q<rcov>, [">= 0"])
103
- s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
104
80
  end
105
81
  else
106
82
  s.add_dependency(%q<crxmake>, [">= 2.0.3"])
107
83
  s.add_dependency(%q<rails>, [">= 3.0.0"])
108
84
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
109
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
85
+ s.add_dependency(%q<jeweler>, ["~> 1.6.0"])
110
86
  s.add_dependency(%q<mocha>, [">= 0.9.12"])
111
87
  s.add_dependency(%q<rcov>, [">= 0"])
112
88
  s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
113
- s.add_dependency(%q<crxmake>, [">= 2.0.3"])
114
- s.add_dependency(%q<rails>, [">= 3.0.0"])
115
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
116
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
117
- s.add_dependency(%q<mocha>, ["~> 0.9.12"])
118
- s.add_dependency(%q<rcov>, [">= 0"])
119
- s.add_dependency(%q<sqlite3>, [">= 1.3.3"])
120
89
  end
121
90
  end
122
91
 
@@ -3,9 +3,9 @@ require 'openssl'
3
3
  require 'rails'
4
4
 
5
5
  # :nodoc: namespace
6
- module ChromembedRails
6
+ module Chromembed
7
7
 
8
- # Name chosen to get chromembed_rails:all
8
+ # rails g chromembed:all
9
9
  class AllGenerator < Rails::Generators::Base
10
10
  source_root File.expand_path("../templates", __FILE__)
11
11
 
@@ -35,6 +35,6 @@ class AllGenerator < Rails::Generators::Base
35
35
  template File.join('desktop', 'chrome_extension.pem.erb'),
36
36
  File.join('desktop', 'chrome_extension.pem')
37
37
  end
38
- end # class ChromembedRails::ConfigVarsGenerator
38
+ end # class Chromembed::AllGenerator
39
39
 
40
- end # namespace ChromembedRails
40
+ end # namespace Chromembed
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chromembed_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Victor Costan
@@ -15,11 +15,9 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-30 00:00:00 -04:00
19
- default_executable:
18
+ date: 2011-05-15 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- name: crxmake
23
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
22
  none: false
25
23
  requirements:
@@ -31,11 +29,11 @@ dependencies:
31
29
  - 0
32
30
  - 3
33
31
  version: 2.0.3
34
- prerelease: false
35
32
  type: :runtime
36
33
  requirement: *id001
34
+ prerelease: false
35
+ name: crxmake
37
36
  - !ruby/object:Gem::Dependency
38
- name: rails
39
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
40
38
  none: false
41
39
  requirements:
@@ -47,11 +45,11 @@ dependencies:
47
45
  - 0
48
46
  - 0
49
47
  version: 3.0.0
50
- prerelease: false
51
48
  type: :runtime
52
49
  requirement: *id002
50
+ prerelease: false
51
+ name: rails
53
52
  - !ruby/object:Gem::Dependency
54
- name: bundler
55
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
56
54
  none: false
57
55
  requirements:
@@ -63,27 +61,27 @@ dependencies:
63
61
  - 0
64
62
  - 0
65
63
  version: 1.0.0
66
- prerelease: false
67
64
  type: :development
68
65
  requirement: *id003
66
+ prerelease: false
67
+ name: bundler
69
68
  - !ruby/object:Gem::Dependency
70
- name: jeweler
71
69
  version_requirements: &id004 !ruby/object:Gem::Requirement
72
70
  none: false
73
71
  requirements:
74
72
  - - ~>
75
73
  - !ruby/object:Gem::Version
76
- hash: 7
74
+ hash: 15
77
75
  segments:
78
76
  - 1
79
- - 5
80
- - 2
81
- version: 1.5.2
82
- prerelease: false
77
+ - 6
78
+ - 0
79
+ version: 1.6.0
83
80
  type: :development
84
81
  requirement: *id004
82
+ prerelease: false
83
+ name: jeweler
85
84
  - !ruby/object:Gem::Dependency
86
- name: mocha
87
85
  version_requirements: &id005 !ruby/object:Gem::Requirement
88
86
  none: false
89
87
  requirements:
@@ -95,11 +93,11 @@ dependencies:
95
93
  - 9
96
94
  - 12
97
95
  version: 0.9.12
98
- prerelease: false
99
96
  type: :development
100
97
  requirement: *id005
98
+ prerelease: false
99
+ name: mocha
101
100
  - !ruby/object:Gem::Dependency
102
- name: rcov
103
101
  version_requirements: &id006 !ruby/object:Gem::Requirement
104
102
  none: false
105
103
  requirements:
@@ -109,11 +107,11 @@ dependencies:
109
107
  segments:
110
108
  - 0
111
109
  version: "0"
112
- prerelease: false
113
110
  type: :development
114
111
  requirement: *id006
112
+ prerelease: false
113
+ name: rcov
115
114
  - !ruby/object:Gem::Dependency
116
- name: sqlite3
117
115
  version_requirements: &id007 !ruby/object:Gem::Requirement
118
116
  none: false
119
117
  requirements:
@@ -125,119 +123,10 @@ dependencies:
125
123
  - 3
126
124
  - 3
127
125
  version: 1.3.3
128
- prerelease: false
129
126
  type: :development
130
127
  requirement: *id007
131
- - !ruby/object:Gem::Dependency
132
- name: crxmake
133
- version_requirements: &id008 !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- hash: 9
139
- segments:
140
- - 2
141
- - 0
142
- - 3
143
- version: 2.0.3
144
- prerelease: false
145
- type: :runtime
146
- requirement: *id008
147
- - !ruby/object:Gem::Dependency
148
- name: rails
149
- version_requirements: &id009 !ruby/object:Gem::Requirement
150
- none: false
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- hash: 7
155
- segments:
156
- - 3
157
- - 0
158
- - 0
159
- version: 3.0.0
160
- prerelease: false
161
- type: :runtime
162
- requirement: *id009
163
- - !ruby/object:Gem::Dependency
164
- name: bundler
165
- version_requirements: &id010 !ruby/object:Gem::Requirement
166
- none: false
167
- requirements:
168
- - - ~>
169
- - !ruby/object:Gem::Version
170
- hash: 23
171
- segments:
172
- - 1
173
- - 0
174
- - 0
175
- version: 1.0.0
176
- prerelease: false
177
- type: :development
178
- requirement: *id010
179
- - !ruby/object:Gem::Dependency
180
- name: jeweler
181
- version_requirements: &id011 !ruby/object:Gem::Requirement
182
- none: false
183
- requirements:
184
- - - ~>
185
- - !ruby/object:Gem::Version
186
- hash: 7
187
- segments:
188
- - 1
189
- - 5
190
- - 2
191
- version: 1.5.2
192
- prerelease: false
193
- type: :development
194
- requirement: *id011
195
- - !ruby/object:Gem::Dependency
196
- name: mocha
197
- version_requirements: &id012 !ruby/object:Gem::Requirement
198
- none: false
199
- requirements:
200
- - - ~>
201
- - !ruby/object:Gem::Version
202
- hash: 35
203
- segments:
204
- - 0
205
- - 9
206
- - 12
207
- version: 0.9.12
208
- prerelease: false
209
- type: :development
210
- requirement: *id012
211
- - !ruby/object:Gem::Dependency
212
- name: rcov
213
- version_requirements: &id013 !ruby/object:Gem::Requirement
214
- none: false
215
- requirements:
216
- - - ">="
217
- - !ruby/object:Gem::Version
218
- hash: 3
219
- segments:
220
- - 0
221
- version: "0"
222
128
  prerelease: false
223
- type: :development
224
- requirement: *id013
225
- - !ruby/object:Gem::Dependency
226
129
  name: sqlite3
227
- version_requirements: &id014 !ruby/object:Gem::Requirement
228
- none: false
229
- requirements:
230
- - - ">="
231
- - !ruby/object:Gem::Version
232
- hash: 29
233
- segments:
234
- - 1
235
- - 3
236
- - 3
237
- version: 1.3.3
238
- prerelease: false
239
- type: :development
240
- requirement: *id014
241
130
  description: Ruby on Rails engine for Web applications that are strongly coupled with Chrome extensions
242
131
  email: costan@gmail.com
243
132
  executables: []
@@ -282,7 +171,6 @@ files:
282
171
  - test/helpers/routes.rb
283
172
  - test/routes_test.rb
284
173
  - test/test_helper.rb
285
- has_rdoc: true
286
174
  homepage: http://github.com/pwnall/chromembed_rails
287
175
  licenses:
288
176
  - MIT
@@ -312,16 +200,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
200
  requirements: []
313
201
 
314
202
  rubyforge_project:
315
- rubygems_version: 1.5.3
203
+ rubygems_version: 1.8.2
316
204
  signing_key:
317
205
  specification_version: 3
318
206
  summary: Serves a Chrome extension embedded in a Rails application
319
- test_files:
320
- - test/chrome_extension_cache_test.rb
321
- - test/chrome_extension_controller_test.rb
322
- - test/helpers/application_controller.rb
323
- - test/helpers/db_setup.rb
324
- - test/helpers/initializers.rb
325
- - test/helpers/routes.rb
326
- - test/routes_test.rb
327
- - test/test_helper.rb
207
+ test_files: []
208
+