smartkiosk-server 0.10.5 → 0.10.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/app/models/terminal_build.rb +7 -2
- data/lib/smartkiosk/server/version.rb +1 -1
- data/lib/tasks/db.rake +1 -1
- metadata +3 -5
- data/app/models/.terminal_ping.rb.kate-swp +0 -0
- data/app/models/.terminal_profile.rb.kate-swp +0 -0
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -281,7 +281,7 @@ GEM
|
|
281
281
|
railties (~> 3.1)
|
282
282
|
rest-client (1.6.7)
|
283
283
|
mime-types (>= 1.16)
|
284
|
-
rmagick (2.13.
|
284
|
+
rmagick (2.13.2)
|
285
285
|
rmagick4j (0.3.7)
|
286
286
|
rspec (2.12.0)
|
287
287
|
rspec-core (~> 2.12.0)
|
@@ -413,7 +413,7 @@ DEPENDENCIES
|
|
413
413
|
rails (= 3.2.11)
|
414
414
|
redis-objects
|
415
415
|
redis-objects-rmap
|
416
|
-
rmagick
|
416
|
+
rmagick (= 2.13.2)
|
417
417
|
rmagick4j
|
418
418
|
rspec-rails
|
419
419
|
rspec-routes_coverage
|
@@ -29,14 +29,15 @@ class TerminalBuild < ActiveRecord::Base
|
|
29
29
|
end
|
30
30
|
|
31
31
|
self.update_attributes :hashes => build_hashes
|
32
|
-
update_stash
|
33
32
|
end
|
34
33
|
|
35
34
|
after_destroy do
|
36
35
|
FileUtils.rm_rf path
|
37
|
-
update_stash
|
38
36
|
end
|
39
37
|
|
38
|
+
after_commit :commit_create, :on => :create
|
39
|
+
after_commit :commit_destroy, :on => :destroy
|
40
|
+
|
40
41
|
def path
|
41
42
|
Rails.root.join("public/builds/#{id}").to_s
|
42
43
|
end
|
@@ -74,4 +75,8 @@ class TerminalBuild < ActiveRecord::Base
|
|
74
75
|
|
75
76
|
GemStashUpdateWorker.perform_async
|
76
77
|
end
|
78
|
+
|
79
|
+
alias :commit_create :update_stash
|
80
|
+
alias :commit_destroy :update_stash
|
81
|
+
|
77
82
|
end
|
data/lib/tasks/db.rake
CHANGED
@@ -12,7 +12,7 @@ namespace :db do
|
|
12
12
|
puts "Droping all tables..."
|
13
13
|
puts "-"*10
|
14
14
|
|
15
|
-
ActiveRecord::Base.connection.drop_table "schema_migrations"
|
15
|
+
ActiveRecord::Base.connection.drop_table "schema_migrations" rescue nil
|
16
16
|
|
17
17
|
root = File.expand_path('../../../app/models/', __FILE__)
|
18
18
|
models = Dir["#{root}/**"].each{|x| require x; }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartkiosk-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -123,8 +123,6 @@ files:
|
|
123
123
|
- app/helpers/application_helper.rb
|
124
124
|
- app/mailers/.gitkeep
|
125
125
|
- app/models/.gitkeep
|
126
|
-
- app/models/.terminal_ping.rb.kate-swp
|
127
|
-
- app/models/.terminal_profile.rb.kate-swp
|
128
126
|
- app/models/ability.rb
|
129
127
|
- app/models/agent.rb
|
130
128
|
- app/models/collection.rb
|
@@ -323,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
323
321
|
version: '0'
|
324
322
|
segments:
|
325
323
|
- 0
|
326
|
-
hash:
|
324
|
+
hash: 713590655924683295
|
327
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
328
326
|
none: false
|
329
327
|
requirements:
|
Binary file
|
Binary file
|