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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74fca51028bf51fe121b24bbde2382677902055b
4
- data.tar.gz: 9dd29880cc060138e9ffd631dab7dc45748af791
3
+ metadata.gz: e50147878e329eb7f951dedb8536a1070d62fa97
4
+ data.tar.gz: 6b1ea96a484aed737c737f1e7173b789f2021399
5
5
  SHA512:
6
- metadata.gz: 1532ce4bbf309b8eee7e099d76e827d3286773b77136669ef8b961ab39d9d89bcc1e55750ed890570f7db8625b710b85aaf747c935e6af0399ba2ea4924548f4
7
- data.tar.gz: 863c744388b26e65960d9bf97f1d14ff28b7ee175b2467ea8e49ffecd9558ebbcdfd8a2ce6a8cdb606a173edea8cd57f91f59413af607477b54bbef3d97895c0
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
- "http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg"
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
- "http://www.bijint.com/assets/pict/tokyo/pc/0003.jpg"
36
+ http://www.bijint.com/assets/pict/tokyo/pc/0003.jpg
37
37
  ```
38
38
 
39
- ### lgtm
39
+ ### markdown
40
40
 
41
41
  ```sh
42
- % bijint lgtm
43
- "[![bijint](http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg)](http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg)"
42
+ % bijint md
43
+ [![bijint](http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg)](http://www.bijint.com/assets/pict/tokyo/pc/2357.jpg)
44
44
  ```
45
45
 
46
- ### lgtm random
46
+ ### markdown random
47
47
 
48
48
  ```sh
49
- % bijint lgtm_random
50
- "[![bijint](http://www.bijint.com/assets/pict/tokyo/pc/0025.jpg)](http://www.bijint.com/assets/pict/tokyo/pc/0025.jpg)"
49
+ % bijint md_random
50
+ [![bijint](http://www.bijint.com/assets/pict/tokyo/pc/0025.jpg)](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.lgtm if ARGV.first == 'lgtm'
12
- puts bijint.lgtm_random if ARGV.first == 'lgtm_random'
11
+ puts bijint.md if ARGV.first == 'md'
12
+ puts bijint.md_random if ARGV.first == 'md_random'
13
13
  end
@@ -10,11 +10,11 @@ module Bijint
10
10
  url(set_area, time_rand)
11
11
  end
12
12
 
13
- def lgtm
13
+ def md
14
14
  "[![bijint](#{url(set_area, Time.now)})](#{url(set_area, Time.now)})"
15
15
  end
16
16
 
17
- def lgtm_random
17
+ def md_random
18
18
  _time_rand = time_rand
19
19
  "[![bijint](#{url(set_area, _time_rand)})](#{url(set_area, _time_rand)})"
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module Bijint
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -2,26 +2,26 @@ require 'spec_helper'
2
2
 
3
3
  describe Bijint do
4
4
 
5
- describe 'now' do
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
- describe 'lgtm' do
17
- let(:bijint) {
18
- Bijint::Bijint.new
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.lgtm).to eq "[![bijint](http://www.bijint.com/assets/pict/tokyo/pc/#{time.strftime('%H%M')}.jpg)](http://www.bijint.com/assets/pict/tokyo/pc/#{time.strftime('%H%M')}.jpg)"
24
- }
19
+ expect(bijint.md).to eq "[![bijint](http://www.bijint.com/assets/pict/tokyo/pc/#{time.strftime('%H%M')}.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.2
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-23 00:00:00.000000000 Z
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.2.2
96
+ rubygems_version: 2.4.5
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: bijint is BIJIN TOKEI