prtscr 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: c2176842c5b719637b262789f7ba47ff021f20ce
4
- data.tar.gz: 1308996e113ffd70fe6bba65ad10dd30eb9a8430
3
+ metadata.gz: 70c17ce3cbab444cf556bdb8f2c78f10d9f3c52f
4
+ data.tar.gz: 312303ce25874c90e3642b4d7c689be8d5294eb1
5
5
  SHA512:
6
- metadata.gz: 0ad1b067b44cc483f22e69ad4596b1146a99d5ab62594b9d8b0d456a6b3bad6bfcea31e887464b1fbb0311f72977c811edc01cd79b88f6c86b06c7d2b51b7dd4
7
- data.tar.gz: 3733d106a38f3c82738ff1ec99afa2e24aa0db33d1c6ae3e1781ba9fcef60cee4a531a3ecfb84616ce51bd0885b79a7ac02ee7321d3288054d10b05d33271e0a
6
+ metadata.gz: c1db855147f93193485cc070738d02bf24d9720d4017f92bb1f4a0ccdbd99f6f7b11c79b119a7b28baeaa0aba5ef1b29c0d4ee46176d9a83b5935ebac46e2b8a
7
+ data.tar.gz: 81a33be3e9500abb934e345a89b3f5f885fc1c29c1eff41f5d25f82acac3685d3b70c785cc65398ea8cdeb548a48a37368f97335912614f1c0a1c48e734aa672
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "prtscr"
3
+ require 'bundler/setup'
4
+ require 'prtscr'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "prtscr"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start
@@ -1,8 +1,8 @@
1
- require "prtscr/version"
2
- require "base64"
1
+ require 'prtscr/version'
2
+ require 'base64'
3
3
 
4
+ # Main Module
4
5
  module Prtscr
5
-
6
6
  def self.get(data)
7
7
  d = {
8
8
  version: 'v2',
@@ -28,5 +28,4 @@ module Prtscr
28
28
  return [[d[:scheme], d[:host], d[:version], d[:size], d[:scale], d[:timestamp], d[:key], d[:sign], d[:url]].join('/'), d[:format]].join('.')
29
29
  end
30
30
  end
31
-
32
31
  end
@@ -1,3 +1,3 @@
1
1
  module Prtscr
2
- VERSION = "0.2.2"
2
+ VERSION = '0.2.3'.freeze
3
3
  end
@@ -4,33 +4,34 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'prtscr/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "prtscr"
7
+ spec.name = 'prtscr'
8
8
  spec.version = Prtscr::VERSION
9
- spec.authors = ["vickodin"]
10
- spec.email = ["vick.orel@gmail.com"]
9
+ spec.authors = ['vickodin']
10
+ spec.email = ['vick.orel@gmail.com']
11
11
 
12
- spec.summary = "PrtScr.ru API gem"
13
- spec.description = "Website screenshot API gem for http://prtscr.ru"
14
- spec.homepage = "https://github.com/vickodin/prtscr"
15
- spec.license = "MIT"
12
+ spec.summary = 'PrtScr.ru API gem'
13
+ spec.description = 'Website screenshot API gem for http://prtscr.ru'
14
+ spec.homepage = 'https://github.com/vickodin/prtscr'
15
+ spec.license = 'MIT'
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- #if spec.respond_to?(:metadata)
19
+ # if spec.respond_to?(:metadata)
20
20
  # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
- #else
21
+ # else
22
22
  # raise "RubyGems 2.0 or newer is required to protect against " \
23
23
  # "public gem pushes."
24
- #end
24
+ # end
25
25
 
26
26
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
27
  f.match(%r{^(test|spec|features)/})
28
28
  end
29
- spec.bindir = "exe"
29
+ spec.bindir = 'exe'
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
- spec.require_paths = ["lib"]
31
+ spec.require_paths = ['lib']
32
32
 
33
- spec.add_development_dependency "bundler", "~> 1.13"
34
- spec.add_development_dependency "rake", "~> 10.0"
35
- spec.add_development_dependency "rspec", "~> 3.0"
33
+ spec.add_development_dependency 'bundler', '~> 1.13'
34
+ spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
36
+ spec.add_development_dependency 'rubocop', '~> 0.46.0'
36
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prtscr
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
  - vickodin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-13 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.46.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.46.0
55
69
  description: Website screenshot API gem for http://prtscr.ru
56
70
  email:
57
71
  - vick.orel@gmail.com