squash_rails 1.3.3 → 1.3.4

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
- ---
2
- SHA1:
3
- metadata.gz: 8bdd10e8dc57b292e89be42207a5339aaa2b8c5b
4
- data.tar.gz: 7c556cca05fdcd0985630b7c57d728a8c8611a73
5
- SHA512:
6
- metadata.gz: 670f150a4849e2a6657daa78145ddb03f4633d59c263f83309502ac0c2b10a8a53e0dbc2cb442b26df9af4268a1f7d8a9f44fba8ef6b821ea0d41d96daf86794
7
- data.tar.gz: 2632fab73a2860025a216feeef8140089f15b3c669633233ae8f891d231becf38cb9f4307c7f3eb9d46e76ad4bc9c2b58160d453c34a1285997bf1abe23eb480
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6aa376df5e3ff8ecc36ce4f65b648a83cfecbd6a
4
+ data.tar.gz: c6d3cc0ff2f0e4258b484acb0ad47136ffbf9c89
5
+ SHA512:
6
+ metadata.gz: 73c052d2f05fb9e22dede00c555a61fac636008c5c67bd40eab1b9f0c428dd751364ba030c812e8690704f74192cd445dfe23dda37c2e370c700b68af3f88437
7
+ data.tar.gz: d8da7ebbe0d8f5f4803fa8e21081795ceb8afc0a3c2eec517100482ca3d6f2242f51534ed3cd2bc76b330bf7d104c73add044e634e4180dd13d89b4f3d7369da
data/README.md CHANGED
@@ -102,10 +102,10 @@ else should be taken care of. For **Capistrano 3**, just add
102
102
 
103
103
  If you do not deploy to a live Git directory, you will need to write a
104
104
  `REVISION` file to your app root. To do this, include the following in your
105
- `config/deploy.rb` file in Capistrano 3:
105
+ `config/deploy.rb` file in Capistrano 2 or 3:
106
106
 
107
107
  ```` ruby
108
- before 'deploy:publishing', 'squash:write_revision'
108
+ before 'deploy:compile_assets', 'squash:write_revision'
109
109
  ````
110
110
 
111
111
  or in Capistrano 2:
@@ -19,10 +19,10 @@ require 'active_support/core_ext/object/try'
19
19
 
20
20
  set :_squash_current_revision, lambda {
21
21
  rev = nil
22
- on roles(:web), :limit => 1 do
22
+ on roles(:web), :in => :sequence, :limit => 1 do
23
23
  within repo_path do
24
24
  origin = capture("git ls-remote #{fetch(:repo_url)}").chomp.lines.map { |l| l.split(/\s+/) }.index_by(&:last)
25
- rev = origin["refs/heads/#{fetch :branch}"].try!(:first) || capture("git rev-parse #{fetch :branch}").chomp
25
+ rev = origin["refs/heads/#{fetch :branch}"].try(:first) || capture("git rev-parse #{fetch :branch}").chomp
26
26
  end
27
27
  end
28
28
  rev
@@ -32,22 +32,19 @@ namespace :squash do
32
32
  # USAGE: before 'deploy:publishing', 'squash:write_revision'
33
33
  desc "Writes a REVISION file to the application's root directory"
34
34
  task :write_revision do
35
- on roles(:app) do
35
+ # must be run in serial because the fetch for _squash_current_revision results
36
+ # in a deadlock otherwise
37
+ on roles(:app), :in => :sequence, :limit => 1 do
36
38
  execute %{echo "#{fetch :_squash_current_revision}" > #{release_path.join('REVISION')}}
37
39
  end
38
40
  end
39
41
 
40
42
  desc "Notifies Squash of a new deploy"
41
43
  task :notify do
42
- on roles(:web), :limit => 1 do
44
+ on roles(:web), :limit => 1 do |host|
43
45
  within release_path do
44
- with :rails_env => fetch(:rails_env) do
45
- command = if test("[ -e #{release_path.join('bin', 'rails')} ]")
46
- 'bin/rails'
47
- else
48
- 'script/rails'
49
- end
50
- execute command, "runner 'Squash::Ruby.notify_deploy #{fetch(:rails_env).inspect}, #{fetch(:_squash_current_revision).inspect}, #{Socket.gethostname.inspect}'"
46
+ with rails_env: fetch(:rails_env) do
47
+ execute :rake, "squash:notify[#{fetch(:current_revision)}]"
51
48
  end
52
49
  end
53
50
  end
@@ -0,0 +1,7 @@
1
+ namespace :squash do
2
+ desc "notify a release"
3
+ task :notify, [:revision] => :environment do |t, options|
4
+ puts "Running in env #{Rails.env} and with options #{options}"
5
+ Squash::Ruby.notify_deploy Rails.env, options[:revision], Socket.gethostname.inspect
6
+ end
7
+ end
metadata CHANGED
@@ -1,107 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: squash_rails
3
- version: !ruby/object:Gem::Version
4
- version: 1.3.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.4
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Tim Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
12
- dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: squash_ruby
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - '>='
18
- - !ruby/object:Gem::Version
19
- version: '0'
11
+
12
+ date: 2015-03-24 00:00:00 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
20
15
  type: :runtime
16
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - &id003
19
+ - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: "0"
22
+ requirement: *id001
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - '>='
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
24
+ name: squash_ruby
25
+ - !ruby/object:Gem::Dependency
26
+ type: :development
27
+ version_requirements: &id002 !ruby/object:Gem::Requirement
28
+ requirements:
31
29
  - - <
32
- - !ruby/object:Gem::Version
30
+ - !ruby/object:Gem::Version
33
31
  version: 4.0.0
32
+ requirement: *id002
33
+ prerelease: false
34
+ name: rails
35
+ - !ruby/object:Gem::Dependency
34
36
  type: :development
37
+ version_requirements: &id004 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - *id003
40
+ requirement: *id004
35
41
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - <
39
- - !ruby/object:Gem::Version
40
- version: 4.0.0
41
- - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - '>='
46
- - !ruby/object:Gem::Version
47
- version: '0'
43
+ - !ruby/object:Gem::Dependency
48
44
  type: :development
45
+ version_requirements: &id005 !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - *id003
48
+ requirement: *id005
49
49
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
50
  name: yard
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
51
+ - !ruby/object:Gem::Dependency
62
52
  type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - '>='
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: redcarpet
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
53
+ version_requirements: &id006 !ruby/object:Gem::Requirement
54
+ requirements:
73
55
  - - <
74
- - !ruby/object:Gem::Version
56
+ - !ruby/object:Gem::Version
75
57
  version: 3.0.0
76
- type: :development
58
+ requirement: *id006
77
59
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - <
81
- - !ruby/object:Gem::Version
82
- version: 3.0.0
83
- - !ruby/object:Gem::Dependency
84
- name: jeweler
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - '>='
88
- - !ruby/object:Gem::Version
89
- version: '0'
60
+ name: redcarpet
61
+ - !ruby/object:Gem::Dependency
90
62
  type: :development
63
+ version_requirements: &id007 !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - *id003
66
+ requirement: *id007
91
67
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
68
+ name: jeweler
97
69
  description: This client library records Ruby on Rails exceptions to Squash.
98
70
  email: tim@squareup.com
99
71
  executables: []
72
+
100
73
  extensions: []
101
- extra_rdoc_files:
74
+
75
+ extra_rdoc_files:
102
76
  - LICENSE.txt
103
77
  - README.md
104
- files:
78
+ files:
105
79
  - LICENSE.txt
106
80
  - README.md
107
81
  - lib/squash/rails.rb
@@ -115,29 +89,30 @@ files:
115
89
  - lib/squash/ruby/railtie.rb
116
90
  - lib/squash_rails.rb
117
91
  - lib/tasks/squash.cap
92
+ - lib/tasks/squash.rake
118
93
  - rails/init.rb
119
94
  homepage: http://github.com/SquareSquash/rails
120
- licenses:
95
+ licenses:
121
96
  - Apache 2.0
122
97
  metadata: {}
98
+
123
99
  post_install_message:
124
100
  rdoc_options: []
125
- require_paths:
101
+
102
+ require_paths:
126
103
  - lib
127
- required_ruby_version: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
132
- required_rubygems_version: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - '>='
135
- - !ruby/object:Gem::Version
136
- version: '0'
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - *id003
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - *id003
137
110
  requirements: []
111
+
138
112
  rubyforge_project:
139
- rubygems_version: 2.2.2
113
+ rubygems_version: 2.4.6
140
114
  signing_key:
141
115
  specification_version: 4
142
116
  summary: Squash client for Ruby on Rails projects
143
117
  test_files: []
118
+