girbot 0.2.2 → 0.2.3

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: a44e0e3084ce38b412c17e4ddb1ecbb66ffe0115
4
- data.tar.gz: de8cd63f2b887aca2f807ffc90972a4bb00b1fcc
3
+ metadata.gz: 2b649845aa9a8efd679922abd8870568d525afc0
4
+ data.tar.gz: 2edc942ea51ab8f075fe30079aa3e468549701e6
5
5
  SHA512:
6
- metadata.gz: 76ccd669127366e56c9d8df5134540d51781222709ac84e94859a2aa805a053cdbb42db3f93f1ff6b86b975f004cf1f461e96f8136f766b7629c882bdd9c86c3
7
- data.tar.gz: 0616e112cb27ea6103cdc8e2878cc12a46e2086c22f40ea9aff540e4ce9924e64c9fb9e8ff43f34880565f1b28472947a1b1a3f9f1e6fdd04005ed3cfbeb50b2
6
+ metadata.gz: c7dcdee0949916d3f879a2092a5b45de706669d94b6f7608b3efd1345e945e32ada78c622dd45814c99103236662567daa8c6e97287a325a90828a8fe4389f3e
7
+ data.tar.gz: c38371a4c4ce19777f3ceab64285483541ab80a200fc15a76f26a7d8b8af58d22ddb34a985f49324f09d8289ed365c0dae8dce7154096ba7d71315e9eddcfb3e
@@ -0,0 +1,2 @@
1
+ details.json
2
+ examples/details.json
data/Dockerfile CHANGED
@@ -20,7 +20,7 @@ RUN set -ex \
20
20
  && mv -v chromedriver /usr/local/bin/ \
21
21
  && rm -v chromedriver_linux64.zip
22
22
 
23
- RUN gem install girbot -v 0.2.1
23
+ RUN gem install girbot -v 0.2.2
24
24
 
25
25
  RUN mkdir /app
26
26
  WORKDIR /app
data/Rakefile CHANGED
@@ -4,3 +4,7 @@ require "rspec/core/rake_task"
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task :default => :spec
7
+
8
+ task :full_release do
9
+ `rake release`
10
+ end
@@ -70,7 +70,7 @@ module Girbot
70
70
  options[:details][:card]
71
71
  end
72
72
 
73
- def self.read path
73
+ def self.read(path)
74
74
  JSON.parse(File.read(path), symbolize_names: true)
75
75
  end
76
76
 
@@ -1,3 +1,3 @@
1
1
  module Girbot
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -54,7 +54,8 @@ module Girbot
54
54
  end
55
55
 
56
56
  def screenshot(label, preview = false)
57
- result = browser.screenshot.save "screenshots/screenshot-#{label}-#{Time.now.to_i}.png"
57
+ timestamp = Time.now.strftime("%F %T")
58
+ result = browser.screenshot.save "screenshots/#{label}-#{timestamp}.png"
58
59
  if preview
59
60
  pid = spawn("xdg-open #{result.path}")
60
61
  Process.detach(pid)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: girbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristian Mircea Messel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2018-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -130,6 +130,7 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".dockerignore"
133
134
  - ".gitignore"
134
135
  - ".rspec"
135
136
  - ".ruby-gemset"