bijint 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/bin/bijint +2 -2
- data/lib/bijint.rb +2 -2
- data/lib/bijint/version.rb +1 -1
- data/spec/bijint_spec.rb +14 -14
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e50147878e329eb7f951dedb8536a1070d62fa97
|
|
4
|
+
data.tar.gz: 6b1ea96a484aed737c737f1e7173b789f2021399
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e05a95954370e00194c11973890b2b2624d47034c249ecdfc5a1bff1a74f93c78ff7f503be57d353fda9c2965e7c817a1cc8b662e50b86256c9857bc778ad2c1
|
|
7
|
+
data.tar.gz: 322d536eed97ed87eefbf7a888eabbbb7eabf13fd92e012ac1a4fbaf97ba39f5dff6aed03ba0199b8d930b708677ad89d59fd8055d22a5418b47a14fad07c91c
|
data/README.md
CHANGED
|
@@ -26,28 +26,28 @@ Or install it yourself as:
|
|
|
26
26
|
|
|
27
27
|
```sh
|
|
28
28
|
% bijint
|
|
29
|
-
|
|
29
|
+
http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### random
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
35
|
% bijint random
|
|
36
|
-
|
|
36
|
+
http://www.bijint.com/assets/pict/tokyo/pc/0003.jpg
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
###
|
|
39
|
+
### markdown
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
% bijint
|
|
43
|
-
|
|
42
|
+
% bijint md
|
|
43
|
+
[](http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg)
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
###
|
|
46
|
+
### markdown random
|
|
47
47
|
|
|
48
48
|
```sh
|
|
49
|
-
% bijint
|
|
50
|
-
|
|
49
|
+
% bijint md_random
|
|
50
|
+
[](http://www.bijint.com/assets/pict/tokyo/pc/0025.jpg)
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
## Contributing
|
data/bin/bijint
CHANGED
|
@@ -8,6 +8,6 @@ if ARGV.empty?
|
|
|
8
8
|
puts bijint.now
|
|
9
9
|
else
|
|
10
10
|
puts bijint.random if ARGV.first == 'random'
|
|
11
|
-
puts bijint.
|
|
12
|
-
puts bijint.
|
|
11
|
+
puts bijint.md if ARGV.first == 'md'
|
|
12
|
+
puts bijint.md_random if ARGV.first == 'md_random'
|
|
13
13
|
end
|
data/lib/bijint.rb
CHANGED
|
@@ -10,11 +10,11 @@ module Bijint
|
|
|
10
10
|
url(set_area, time_rand)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def
|
|
13
|
+
def md
|
|
14
14
|
"[})](#{url(set_area, Time.now)})"
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
def
|
|
17
|
+
def md_random
|
|
18
18
|
_time_rand = time_rand
|
|
19
19
|
"[})](#{url(set_area, _time_rand)})"
|
|
20
20
|
end
|
data/lib/bijint/version.rb
CHANGED
data/spec/bijint_spec.rb
CHANGED
|
@@ -2,26 +2,26 @@ require 'spec_helper'
|
|
|
2
2
|
|
|
3
3
|
describe Bijint do
|
|
4
4
|
|
|
5
|
-
describe '
|
|
6
|
-
let(:bijint) {
|
|
7
|
-
Bijint::Bijint.new
|
|
8
|
-
}
|
|
5
|
+
describe 'method' do
|
|
6
|
+
let(:bijint) { Bijint::Bijint.new }
|
|
9
7
|
|
|
10
|
-
it
|
|
8
|
+
it 'now' do
|
|
11
9
|
time = Time.now
|
|
12
10
|
expect(bijint.now).to eq "http://www.bijint.com/assets/pict/tokyo/pc/#{time.strftime('%H%M')}.jpg"
|
|
13
|
-
|
|
14
|
-
end
|
|
11
|
+
end
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
13
|
+
it 'random' do
|
|
14
|
+
expect(bijint.random).to match /http:\/\/www\.bijint\.com\/assets\/pict\/tokyo\/pc\/\d{4}\.jpg/
|
|
15
|
+
end
|
|
20
16
|
|
|
21
|
-
it
|
|
17
|
+
it 'md' do
|
|
22
18
|
time = Time.now
|
|
23
|
-
expect(bijint.
|
|
24
|
-
|
|
19
|
+
expect(bijint.md).to eq "[}.jpg)](http://www.bijint.com/assets/pict/tokyo/pc/#{time.strftime('%H%M')}.jpg)"
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
it 'md_random' do
|
|
23
|
+
expect(bijint.md_random).to match /\[!\[bijint\]\(http:\/\/www\.bijint\.com\/assets\/pict\/tokyo\/pc\/\d{4}\.jpg\)\]\(http:\/\/www\.bijint\.com\/assets\/pict\/tokyo\/pc\/\d{4}\.jpg\)/
|
|
24
|
+
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bijint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- funnythingz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
93
93
|
version: '0'
|
|
94
94
|
requirements: []
|
|
95
95
|
rubyforge_project:
|
|
96
|
-
rubygems_version: 2.
|
|
96
|
+
rubygems_version: 2.4.5
|
|
97
97
|
signing_key:
|
|
98
98
|
specification_version: 4
|
|
99
99
|
summary: bijint is BIJIN TOKEI
|