snipper 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/snipper/snippet.rb +2 -0
- data/lib/snipper/version.rb +1 -1
- metadata +75 -97
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6b16a6e05447271b1072e4251558346bc70b191a
|
4
|
+
data.tar.gz: 9e40b02e1a5e65c1549761dcbe0d5734c6406d66
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e298f0de5ad4c1269ca765e9a757ba96a9d04ea675b087a1e8d2596a1707cf63a7d8f83c59b987c8f1b42065e02e0cae97597b4e6c67acc82b277610b6d1fc5c
|
7
|
+
data.tar.gz: 873b05b06159e2bab98cb20d4bd7f6b1b7e09bf7f44130d371a11d41deef3f7fca2ac2a029fe9eceed90341513036173b91c4c749f719a9740876a4cd1905613
|
data/lib/snipper/snippet.rb
CHANGED
@@ -133,11 +133,13 @@ class Snipper
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def next_file_id
|
136
|
+
return 1 unless files.any?
|
136
137
|
Integer(files[-1]) + 1
|
137
138
|
end
|
138
139
|
|
139
140
|
def next_snippet_id
|
140
141
|
snippets = Dir.entries(Config[:snippets_dir]).grep(/^\d+$/)
|
142
|
+
return 1 unless snippets.any?
|
141
143
|
Integer(snippets.map{|s| s.to_i}.sort.max) + 1
|
142
144
|
end
|
143
145
|
|
data/lib/snipper/version.rb
CHANGED
metadata
CHANGED
@@ -1,131 +1,109 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: snipper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 7
|
10
|
-
version: 0.0.7
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.8
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- R.I.Pienaar
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: rake
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
33
20
|
type: :development
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rdoc
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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: rdoc
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
47
34
|
type: :development
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: pygments.rb
|
51
35
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pygments.rb
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
61
48
|
type: :runtime
|
62
|
-
version_requirements: *id003
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: thor
|
65
49
|
prerelease: false
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
75
62
|
type: :runtime
|
76
|
-
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
77
69
|
description: A Unix CLI centric snippet manager that produces static files
|
78
70
|
email: rip@devco.net
|
79
|
-
executables:
|
71
|
+
executables:
|
80
72
|
- snipper
|
81
73
|
extensions: []
|
82
|
-
|
83
74
|
extra_rdoc_files: []
|
84
|
-
|
85
|
-
files:
|
75
|
+
files:
|
86
76
|
- bin/snipper
|
87
|
-
-
|
77
|
+
- css/darkbg.css
|
78
|
+
- css/lightbg.css
|
79
|
+
- lib/snipper.rb
|
88
80
|
- lib/snipper/config.rb
|
89
81
|
- lib/snipper/output/pygments_output.rb
|
90
|
-
- lib/snipper/
|
82
|
+
- lib/snipper/snippet.rb
|
91
83
|
- lib/snipper/util.rb
|
92
|
-
- lib/snipper.rb
|
93
|
-
- css/lightbg.css
|
94
|
-
- css/darkbg.css
|
95
|
-
has_rdoc: true
|
84
|
+
- lib/snipper/version.rb
|
96
85
|
homepage: http://devco.net/
|
97
86
|
licenses: []
|
98
|
-
|
87
|
+
metadata: {}
|
99
88
|
post_install_message:
|
100
89
|
rdoc_options: []
|
101
|
-
|
102
|
-
require_paths:
|
90
|
+
require_paths:
|
103
91
|
- lib
|
104
92
|
- lib
|
105
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
none: false
|
116
|
-
requirements:
|
117
|
-
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
hash: 3
|
120
|
-
segments:
|
121
|
-
- 0
|
122
|
-
version: "0"
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
123
103
|
requirements: []
|
124
|
-
|
125
104
|
rubyforge_project:
|
126
|
-
rubygems_version:
|
105
|
+
rubygems_version: 2.0.14
|
127
106
|
signing_key:
|
128
|
-
specification_version:
|
107
|
+
specification_version: 4
|
129
108
|
summary: Snipper
|
130
109
|
test_files: []
|
131
|
-
|