fullstack 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -17,6 +17,8 @@ gem 'auto_strip_attributes'
17
17
  gem 'jquery-rails'
18
18
  gem 'coffeebeans'
19
19
  gem 'kaminari'
20
+ gem 'meta-tags-helpers'
21
+ gem "mobile-fu", "~> 1.1.0"
20
22
 
21
23
  # ==============
22
24
  # = Controller =
data/Gemfile.lock CHANGED
@@ -79,7 +79,12 @@ GEM
79
79
  i18n (>= 0.4.0)
80
80
  mime-types (~> 1.16)
81
81
  treetop (~> 1.4.8)
82
+ meta-tags-helpers (0.1.2)
83
+ rails
82
84
  mime-types (1.19)
85
+ mobile-fu (1.1.0)
86
+ rack-mobile-detect
87
+ rails
83
88
  multi_json (1.3.6)
84
89
  net-ssh (2.5.2)
85
90
  nokogiri (1.5.5)
@@ -90,6 +95,8 @@ GEM
90
95
  rack (1.4.1)
91
96
  rack-cache (1.2)
92
97
  rack (>= 0.4)
98
+ rack-mobile-detect (0.4.0)
99
+ rack
93
100
  rack-ssl (1.3.2)
94
101
  rack
95
102
  rack-test (0.6.1)
@@ -159,6 +166,8 @@ DEPENDENCIES
159
166
  jquery-rails
160
167
  kaminari
161
168
  kaminari-i18n
169
+ meta-tags-helpers
170
+ mobile-fu (~> 1.1.0)
162
171
  nokogiri
163
172
  rails
164
173
  rails-i18n
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
data/fullstack.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack"
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
12
- s.date = "2012-08-05"
12
+ s.date = "2012-08-06"
13
13
  s.description = "Fullstack framework"
14
14
  s.email = "maurizio.cas@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -29,8 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/generators/fullstack/install_generator.rb",
30
30
  "lib/generators/fullstack/locale_generator.rb",
31
31
  "lib/generators/fullstack/templates/config/assets.yml",
32
- "lib/generators/fullstack/templates/config/settings.yml.tt",
33
- "lib/generators/fullstack/templates/lib/remote.rake"
32
+ "lib/generators/fullstack/templates/config/settings.yml.tt"
34
33
  ]
35
34
  s.homepage = "http://github.com/mcasimir/fullstack"
36
35
  s.licenses = ["MIT"]
@@ -49,6 +48,8 @@ Gem::Specification.new do |s|
49
48
  s.add_runtime_dependency(%q<jquery-rails>, [">= 0"])
50
49
  s.add_runtime_dependency(%q<coffeebeans>, [">= 0"])
51
50
  s.add_runtime_dependency(%q<kaminari>, [">= 0"])
51
+ s.add_runtime_dependency(%q<meta-tags-helpers>, [">= 0"])
52
+ s.add_runtime_dependency(%q<mobile-fu>, ["~> 1.1.0"])
52
53
  s.add_runtime_dependency(%q<rambler>, [">= 0"])
53
54
  s.add_runtime_dependency(%q<rails_config>, [">= 0"])
54
55
  s.add_runtime_dependency(%q<remoting>, [">= 0"])
@@ -73,6 +74,8 @@ Gem::Specification.new do |s|
73
74
  s.add_dependency(%q<jquery-rails>, [">= 0"])
74
75
  s.add_dependency(%q<coffeebeans>, [">= 0"])
75
76
  s.add_dependency(%q<kaminari>, [">= 0"])
77
+ s.add_dependency(%q<meta-tags-helpers>, [">= 0"])
78
+ s.add_dependency(%q<mobile-fu>, ["~> 1.1.0"])
76
79
  s.add_dependency(%q<rambler>, [">= 0"])
77
80
  s.add_dependency(%q<rails_config>, [">= 0"])
78
81
  s.add_dependency(%q<remoting>, [">= 0"])
@@ -98,6 +101,8 @@ Gem::Specification.new do |s|
98
101
  s.add_dependency(%q<jquery-rails>, [">= 0"])
99
102
  s.add_dependency(%q<coffeebeans>, [">= 0"])
100
103
  s.add_dependency(%q<kaminari>, [">= 0"])
104
+ s.add_dependency(%q<meta-tags-helpers>, [">= 0"])
105
+ s.add_dependency(%q<mobile-fu>, ["~> 1.1.0"])
101
106
  s.add_dependency(%q<rambler>, [">= 0"])
102
107
  s.add_dependency(%q<rails_config>, [">= 0"])
103
108
  s.add_dependency(%q<remoting>, [">= 0"])
data/lib/fullstack.rb CHANGED
@@ -20,6 +20,8 @@ require 'kaminari-i18n'
20
20
  require 'remoting'
21
21
  require 'kaminari'
22
22
  require 'rails-slow-assets-workaround'
23
+ require 'meta-tags-helpers'
24
+ require "mobile-fu"
23
25
 
24
26
  module Fullstack
25
27
  class Engine < ::Rails::Engine
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-05 00:00:00.000000000 Z
12
+ date: 2012-08-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -123,6 +123,38 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: meta-tags-helpers
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :runtime
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: mobile-fu
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ~>
148
+ - !ruby/object:Gem::Version
149
+ version: 1.1.0
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ~>
156
+ - !ruby/object:Gem::Version
157
+ version: 1.1.0
126
158
  - !ruby/object:Gem::Dependency
127
159
  name: rambler
128
160
  requirement: !ruby/object:Gem::Requirement
@@ -400,7 +432,6 @@ files:
400
432
  - lib/generators/fullstack/locale_generator.rb
401
433
  - lib/generators/fullstack/templates/config/assets.yml
402
434
  - lib/generators/fullstack/templates/config/settings.yml.tt
403
- - lib/generators/fullstack/templates/lib/remote.rake
404
435
  homepage: http://github.com/mcasimir/fullstack
405
436
  licenses:
406
437
  - MIT
@@ -416,7 +447,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
416
447
  version: '0'
417
448
  segments:
418
449
  - 0
419
- hash: 792729600109378281
450
+ hash: 3391521658313587288
420
451
  required_rubygems_version: !ruby/object:Gem::Requirement
421
452
  none: false
422
453
  requirements:
@@ -1,255 +0,0 @@
1
- namespace :remote do
2
-
3
- task :info do
4
- require 'remoting/task'
5
- remote('info', config.login) do
6
-
7
- source "/usr/local/rvm/scripts/rvm"
8
- which :ruby
9
- echo "RUBY VERSION: `ruby --version`"
10
- echo "RUBYGEM VERSION: `gem --version`"
11
- command "RVM_VER=`rvm --version`"
12
- echo "RVM VERSION: $RVM_VER"
13
- end
14
- end
15
-
16
- desc "Setup git origin"
17
- task :init do
18
- require 'remoting/task'
19
-
20
- local('init') do
21
- git :init
22
- git :remote, :add, :origin, config.repo
23
- end
24
- end
25
-
26
- desc "Initialize remote"
27
- task :setup do
28
- require 'remoting/task'
29
- repo_location = config.repo.gsub(/^ssh:\/\/[^\/]+/, "")
30
- remote('setup', config.login) do
31
- mkdir "-p", repo_location
32
- cd repo_location
33
- git :init, "--bare"
34
- git "--bare", "update-server-info"
35
- mkdir "-p", config.dest
36
- git :config, "core.bare", :false
37
- git :config, "core.worktree", config.dest
38
- git :config, "receive.denycurrentbranch", :ignore
39
- touch "hooks/post-receive"
40
- command("echo '#!/bin/sh' >> hooks/post-receive")
41
- command("echo git checkout -f >> hooks/post-receive ")
42
- chmod "+x", "hooks/post-receive"
43
- end
44
- end
45
-
46
- desc "Commit everything to remote git repository"
47
- task :push do
48
- require 'remoting/task'
49
-
50
- message = ENV["MESSAGE"] || "commit #{Time.now}"
51
-
52
- local('push') do
53
- git :add, "."
54
- git :commit, "-a", "-m", "\"#{message}\""
55
- git :push, "origin", "+master:refs/heads/master"
56
- end
57
- end
58
-
59
- desc "Commit everything to remote git repository"
60
- task :pull do
61
- require 'remoting/task'
62
-
63
- local('pull') do
64
- git :pull, :origin, :master
65
- end
66
- end
67
-
68
-
69
- desc "Restart the server"
70
- task :restart do
71
- require 'remoting/task'
72
-
73
- remote('restart', config.login) do
74
- mkdir '-p', config.dest.join('tmp')
75
- touch config.dest.join('tmp', 'restart.txt')
76
- end
77
-
78
- end
79
-
80
- desc "Run bundle install on the server"
81
- task :bundle do
82
- require 'remoting/task'
83
-
84
- remote('bundle', config.login) do
85
- source "/usr/local/rvm/scripts/rvm"
86
- rvm :use, config.ruby
87
-
88
- cd config.dest
89
- export "LANG=en_US.UTF-8"
90
- command "RAILS_ENV=production", "bundle install", "--without development test", "--deployment"
91
- end
92
- end
93
-
94
- desc "Deploy application on server"
95
- task :deploy => [:push, :bundle, :"assets:compile", :restart] do
96
- end
97
-
98
- desc "Run rake tasks on server"
99
- task :rake, [:invocation] do |t, args|
100
- require 'remoting/task'
101
-
102
- invocation = args[:invocation]
103
-
104
- remote('rake', config.login, :interactive => true) do
105
- source "/usr/local/rvm/scripts/rvm"
106
- rvm :use, config.ruby
107
- cd config.dest
108
- command("RAILS_ENV=production bundle exec rake #{invocation}")
109
- end
110
-
111
- end
112
-
113
- desc "Open a remote shell session on server"
114
- task :ssh do
115
- require 'remoting/task'
116
- remote('ssh', config.login, :interactive => true) do
117
- end
118
- end
119
-
120
- desc "Dump a remote logfile"
121
- task :log, [:lines, :filename] do |t, args|
122
- require 'remoting/task'
123
-
124
- filename, lines = args.values_at(:lines, :filename)
125
- filename ||= "production"
126
- filename = "#{filename}.log" unless filename =~ /\.[a-z]+$/
127
-
128
- lines ||= 100
129
-
130
- remote('log', config.login) do
131
- cd config.dest
132
- tail "-#{lines} log/#{filename}"
133
- end
134
- end
135
-
136
- task :logs => [:log] do
137
- end
138
-
139
-
140
- desc "Run tail -f on logfile"
141
- task :logtail, [:filename] do |t, args|
142
- require 'remoting/task'
143
-
144
- filename= args[:filename]
145
- filename ||= "production"
146
- filename = "#{filename}.log" unless filename =~ /\.[a-z]+$/
147
-
148
- remote('logtail', config.login) do
149
- cd config.dest
150
- tail "-f log/#{filename}"
151
- end
152
- end
153
-
154
- desc "Open a remote console"
155
- task :console do
156
- require 'remoting/task'
157
-
158
- remote('console', config.login, :interactive => true) do
159
- cd config.dest
160
- source "/usr/local/rvm/scripts/rvm"
161
- bundle :exec, "rails c production"
162
- end
163
- end
164
-
165
- desc "Update crontab with whenever schedule"
166
- task :whenever do
167
- require 'remoting/task'
168
-
169
- remote('whenever', config.login) do
170
- cd config.dest
171
- whenever "-w"
172
- end
173
- end
174
-
175
-
176
- namespace :apache do
177
- task :ensite do
178
- require 'remoting/task'
179
- remote('ensite', config.login, :interactive => true) do
180
- cd "/etc/apache2/sites-enabled"
181
- sudo "ln -s #{config.dest.join('config', 'apache.conf')} #{config.app}"
182
- end
183
- end
184
-
185
- task :reload do
186
- require 'remoting/task'
187
-
188
- remote('reload', config.login, :interactive => true) do
189
- sudo "/etc/init.d/apache2 reload"
190
- end
191
- end
192
- end
193
-
194
- namespace :assets do
195
-
196
- desc 'Precompile assets'
197
- task :precompile do
198
- require 'remoting/task'
199
-
200
- remote('rake assets:precompile', config.login) do
201
- source "/usr/local/rvm/scripts/rvm"
202
- rvm :use, config.ruby
203
- cd config.dest
204
- command("RAILS_ENV=production bundle exec rake assets:precompile")
205
- echo 'restarting ...'
206
- mkdir '-p', config.dest.join('tmp')
207
- touch config.dest.join('tmp', 'restart.txt')
208
-
209
- end
210
- end
211
-
212
- desc 'compile application related static assets'
213
- task :compile do
214
- require 'remoting/task'
215
-
216
- remote('rake assets:compile', config.login) do
217
- source "/usr/local/rvm/scripts/rvm"
218
- rvm :use, config.ruby
219
- cd config.dest
220
- command("RAILS_ENV=production bundle exec rake assets:compile")
221
- end
222
- end
223
-
224
- end
225
-
226
- namespace :db do
227
-
228
- desc "Migrate remote database"
229
- task :migrate do |t, args|
230
- require 'remoting/task'
231
-
232
- remote('rake db:migrate', config.login) do
233
- source "/usr/local/rvm/scripts/rvm"
234
- rvm :use, config.ruby
235
- cd config.dest
236
- command("RAILS_ENV=production bundle exec rake db:migrate")
237
- end
238
- end
239
-
240
- desc "Seed remote database"
241
- task :seed do |t, args|
242
- require 'remoting/task'
243
-
244
- remote('rake db:seed', config.login) do
245
- source "/usr/local/rvm/scripts/rvm"
246
- rvm :use, config.ruby
247
- cd config.dest
248
- command("RAILS_ENV=production bundle exec rake db:seed")
249
- end
250
- end
251
-
252
-
253
- end
254
-
255
- end