roger_sneakpeek 0.1.2 → 0.1.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
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc7f5974e7036c2cdde3a425d6a4a822aa89d518
4
- data.tar.gz: 435830c9c02c5f31e5d070fc1a8af018383d9712
3
+ metadata.gz: a5a3aa4aa190a4c5cefd0a60a44020d1123e5d15
4
+ data.tar.gz: 662a5fe0f822a97156e280c15e310c1d961a54ab
5
5
  SHA512:
6
- metadata.gz: af0aad7175234c24f8d0430b0654634c38f73ce4d0c3d11005fa80b0b748aca9e44f872ed471e1fd84df2ede2d1466e2a518d32accf868345802c71e4a1491b1
7
- data.tar.gz: 9abcf7b66320f90251da6e363a937c2acfb5a8c50a192858a8503b16f44f7230816b799156a01249d3c32ad82a7f36270c14384242c0dfbf85e3c8fe8e8251c4
6
+ metadata.gz: 01087ce9d1db83749b2f0002e02cf4afc7cda3df3149ee7900de0e196efe994853f6b2b1bdc50a90eb7edbc172e7ad8764c291b8dd0b107546dacc95bfd4f455
7
+ data.tar.gz: fe44add336fdb9d7a84432f6d9c233d90551ac80a94d37a41314f4f9e9a41e0cfc499687241c16215eb89df345e322082150c1b2be525c93a03bcc4572dd8b2a
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.4
4
+ * Ruby 2.5 compatibility fixes
5
+
6
+ ## 0.1.3
7
+ * Ruby 2.5 compatibility fixes
8
+
9
+ ## 0.1.2
10
+ * Larger timeout for upload
11
+ * Fix linting errors
12
+
3
13
  ## 0.1.1
4
14
  * Require roger/release so we can use Roger::Release and not fail.
5
15
 
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- roger_sneakpeek (0.1.1)
4
+ roger_sneakpeek (0.1.3)
5
5
  faraday (~> 0.8, >= 0.8.11)
6
6
  roger (~> 1.7, >= 1.0.0)
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  ast (2.2.0)
12
- faraday (0.13.1)
12
+ faraday (0.14.0)
13
13
  multipart-post (>= 1.2, < 3)
14
14
  hpricot (0.8.4)
15
15
  metaclass (0.0.4)
@@ -21,7 +21,7 @@ GEM
21
21
  ast (~> 2.2)
22
22
  power_assert (0.2.7)
23
23
  powerpack (0.1.1)
24
- rack (2.0.3)
24
+ rack (2.0.4)
25
25
  rainbow (2.0.0)
26
26
  rake (10.5.0)
27
27
  redcarpet (3.4.0)
@@ -60,7 +60,7 @@ module RogerSneakpeek
60
60
  end
61
61
 
62
62
  def zip_release
63
- zip_path = Dir::Tmpname.create ["release", ".zip"] {}
63
+ zip_path = tmpname
64
64
  ::Dir.chdir(@release.build_path) do
65
65
  command = zip_command("-r", "-9", Shellwords.escape(zip_path), "./*")
66
66
  output = `#{command}`
@@ -70,6 +70,12 @@ module RogerSneakpeek
70
70
  zip_path
71
71
  end
72
72
 
73
+ # Shameless rip-off of https://github.com/rails/rails/pull/31462/files
74
+ def tmpname
75
+ t = Time.now.strftime("%Y%m%d")
76
+ "release-zip-#{t}-#{$PROCESS_ID}-#{rand(0x100000000).to_s(36)}.zip"
77
+ end
78
+
73
79
  def upload_release(zip_path)
74
80
  git = if CI.ci?
75
81
  CI.new
@@ -1,5 +1,5 @@
1
1
  # Roger main namespace
2
2
  # frozen_string_literal: true
3
3
  module RogerSneakpeek
4
- VERSION = "0.1.2".freeze
4
+ VERSION = "0.1.4".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roger_sneakpeek
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flurin Egger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-01 00:00:00.000000000 Z
11
+ date: 2018-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roger