gisty 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +4 -12
  3. data/lib/gisty.rb +9 -12
  4. metadata +21 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71acdfd80aea0cdff5b4aa15f8be30007a0d08656b7b37ee927a0f7ec57b02a7
4
- data.tar.gz: 8d62b4ab7f831d6a92c58f3b48f332b064d0cd8154106efbdc4339425ff6b23f
3
+ metadata.gz: 663017a0277c71e45e499483effbb35ed3b20adbeead6c16093fb4aa912b3b45
4
+ data.tar.gz: 2d9fdaf9ee52928f928789350b7afc8cf7e74310c9c4cbd482e5e572304360fc
5
5
  SHA512:
6
- metadata.gz: c0e17db5e9d9c3b6595d73fe63e2c6706a091c3d944396f381ceda43164de0560775c07cffd91963208b68e627f24e352289c442df7840081ce4f03dabbc565b
7
- data.tar.gz: fac59b05bb36d41b1a6efc9fc2a4fc64ace4ee20b61353e957a62cd3b3913da15e2b38c6853201ae634388970e9dc8f38902fe17be69c770b8284a8c8776e781
6
+ metadata.gz: 7b4e325b71495aadf70ba7572a51d3857c0a5372789b8874307b602b33b02328bce1cbc257dc89f15ef4d5b327d8e9270a26a18da41e7dd7438a1d3f6fb15d3c
7
+ data.tar.gz: e151a16807960f2d7a8cbb1ef7c25c23d36a5cd8408fa63f9c3efa4d989883b41422871f900aaea61ea44e73cdd997585eaae6d6033ed6a909975425b1e1e3f4
data/Rakefile CHANGED
@@ -3,8 +3,6 @@ require 'rake'
3
3
  require 'rake/clean'
4
4
  require 'rake/testtask'
5
5
  require 'rake/packagetask'
6
- # require 'rake/contrib/rubyforgepublisher'
7
- # require 'rake/contrib/sshpublisher'
8
6
  require 'fileutils'
9
7
  require './lib/gisty'
10
8
  include FileUtils
@@ -14,7 +12,6 @@ AUTHOR = "swdyh"
14
12
  EMAIL = "http://mailhide.recaptcha.net/d?k=01AhB7crgrlHptVaYRD0oPwA==&c=L_iqOZrGmo6hcGpPTFg1QYnjr-WpAStyQ4Y8ShfgOHs="
15
13
  SUMMARY = "yet another command line client for gist."
16
14
  DESCRIPTION = SUMMARY + " Gisty uses Github API V3 via OAuth2."
17
- # RUBYFORGE_PROJECT = "gisty"
18
15
  HOMEPATH = "http://github.com/swdyh/gisty/tree/master"
19
16
  BIN_FILES = %w( gisty )
20
17
 
@@ -42,7 +39,6 @@ spec = Gem::Specification.new do |s|
42
39
  s.name = NAME
43
40
  s.version = VERS
44
41
  s.platform = Gem::Platform::RUBY
45
- # s.has_rdoc = true
46
42
  s.extra_rdoc_files = ["README.rdoc"]
47
43
  s.rdoc_options += RDOC_OPTS + ['--exclude', '^(examples|extras)/']
48
44
  s.summary = SUMMARY
@@ -51,23 +47,19 @@ spec = Gem::Specification.new do |s|
51
47
  s.email = EMAIL
52
48
  s.homepage = HOMEPATH
53
49
  s.executables = BIN_FILES
54
- # s.rubyforge_project = RUBYFORGE_PROJECT
55
50
  s.bindir = "bin"
56
51
  s.require_path = "lib"
57
- #s.autorequire = ""
58
52
  s.test_files = Dir["test/*_test.rb"]
53
+ s.license = 'MIT'
59
54
 
60
- #s.add_dependency('activesupport', '>=1.3.1')
61
- #s.required_ruby_version = '>= 1.8.2'
62
- s.add_development_dependency "json"
63
- s.add_development_dependency "rake"
55
+ s.add_development_dependency "rake", '~> 13.0', '>= 13.0.0'
64
56
  s.add_development_dependency "rr", "<= 1.1.2"
65
- s.add_development_dependency "fakeweb"
57
+ s.add_development_dependency "fakeweb", '~> 1.3.0', '>= 1.3.0'
66
58
  s.add_development_dependency "minitest", '~> 4.0'
67
59
  s.add_development_dependency "test-unit", '~> 3.0'
68
60
 
69
61
  s.files = %w(README.rdoc Rakefile) +
70
- Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
62
+ Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
71
63
  Dir.glob("ext/**/*.{h,c,rb}") +
72
64
  Dir.glob("examples/**/*.rb") +
73
65
  Dir.glob("tools/*.rb") +
@@ -7,7 +7,7 @@ require 'rubygems'
7
7
  require 'json'
8
8
 
9
9
  class Gisty
10
- VERSION = '0.2.9'
10
+ VERSION = '0.3.0'
11
11
  GIST_URI = 'gist.github.com'
12
12
  GIST_API_URL = 'https://api.github.com/gists'
13
13
  GISTY_URL = 'https://github.com/swdyh/gisty'
@@ -132,11 +132,8 @@ class Gisty
132
132
 
133
133
  def sync delete = false
134
134
  local = local_ids
135
- p [:cd, @dir.exist?, @dir]
136
135
  FileUtils.cd @dir do
137
- p :afeter
138
136
  r = all_mygists do |gist|
139
- p [:gitst, gist]
140
137
  unless File.exists? gist['id']
141
138
  c = "git clone git@#{@base_uri}:#{gist['id']}.git"
142
139
  Kernel.system c
@@ -230,13 +227,13 @@ class Gisty
230
227
 
231
228
  # `figlet -f contributed/bdffonts/clb8x8.flf gisty`.gsub('#', 'm')
232
229
  AA = <<-EOS
233
- mm mm
234
- mm
235
- mmmmmm mmmm mmmmm mmmmmm mm mm
236
- mm mm mm mm mm mm mm
237
- mm mm mm mmmm mm mm mm
238
- mmmmmm mm mm mm mmmmm
239
- mm mmmmmm mmmmm mmm mm
240
- mmmmm mmmm
230
+ mm mm
231
+ mm
232
+ mmmmmm mmmm mmmmm mmmmmm mm mm
233
+ mm mm mm mm mm mm mm
234
+ mm mm mm mmmm mm mm mm
235
+ mmmmmm mm mm mm mmmmm
236
+ mm mmmmmm mmmmm mmm mm
237
+ mmmmm mmmm
241
238
  EOS
242
239
  end
metadata CHANGED
@@ -1,43 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - swdyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-16 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: json
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - ">="
32
18
  - !ruby/object:Gem::Version
33
- version: '0'
19
+ version: 13.0.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '13.0'
34
23
  type: :development
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
27
  - - ">="
39
28
  - !ruby/object:Gem::Version
40
- version: '0'
29
+ version: 13.0.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '13.0'
41
33
  - !ruby/object:Gem::Dependency
42
34
  name: rr
43
35
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +50,20 @@ dependencies:
58
50
  requirements:
59
51
  - - ">="
60
52
  - !ruby/object:Gem::Version
61
- version: '0'
53
+ version: 1.3.0
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: 1.3.0
62
57
  type: :development
63
58
  prerelease: false
64
59
  version_requirements: !ruby/object:Gem::Requirement
65
60
  requirements:
66
61
  - - ">="
67
62
  - !ruby/object:Gem::Version
68
- version: '0'
63
+ version: 1.3.0
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: 1.3.0
69
67
  - !ruby/object:Gem::Dependency
70
68
  name: minitest
71
69
  requirement: !ruby/object:Gem::Requirement
@@ -125,7 +123,8 @@ files:
125
123
  - test/gisty_test.rb
126
124
  - test/test_helper.rb
127
125
  homepage: http://github.com/swdyh/gisty/tree/master
128
- licenses: []
126
+ licenses:
127
+ - MIT
129
128
  metadata: {}
130
129
  post_install_message:
131
130
  rdoc_options:
@@ -153,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
152
  version: '0'
154
153
  requirements: []
155
154
  rubyforge_project:
156
- rubygems_version: 2.7.6.2
155
+ rubygems_version: 2.7.6
157
156
  signing_key:
158
157
  specification_version: 4
159
158
  summary: yet another command line client for gist.