fukung 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +15 -0
  2. data/a.rb +3 -0
  3. data/fukung.gemspec +2 -2
  4. data/lib/fukung.rb +8 -6
  5. metadata +36 -57
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTIyYmIxZGE1OWIyZDVmODVmNzExNTM2NGFiYjIyY2NmOTI4NDc0NA==
5
+ data.tar.gz: !binary |-
6
+ ZDAwOWE0ZTFmMWM2MDA5ZTA5Njk2MTZhZTkzM2ZkMmIxYzIzZjllYQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZTNlYzQ2YjU1Yzk0NmQ3NzdiNzIxNzZjMjM4MDVkMWY1MGMwYjFlOGU2NzYw
10
+ ZTRhMDc3ZDI1YzlmNjc5ZjM2MDEyMzRjNDAwZjU1YzU3MGVmYWViMmQzZTRk
11
+ NDExZmRhOGZhZjIxYWI5NzdhOWFjMzBkYzRkOTY2NzE5ZWY5NWE=
12
+ data.tar.gz: !binary |-
13
+ M2M4N2M0YjUzMTQ5NzQ3ZDMxMWU1ZDAwOTdhZmU2YzU5OWMyMDJhMTczZDJh
14
+ MDhjMWM2NzA5Y2M1M2NkNWQ2ZTBjZDQ3ZjU2YzhmZjU3YTgyNDczY2Y5YTY4
15
+ YjVmMTU2MGNkMzk2MDhlM2E5ZmZmMTRlNTg1ZWY5NjA3MDk0OTM=
data/a.rb ADDED
@@ -0,0 +1,3 @@
1
+ require './lib/fukung.rb'
2
+
3
+ puts Fukung.random
@@ -3,12 +3,12 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "fukung"
6
- spec.version = "1.1.0"
6
+ spec.version = "2.0.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "fukung"
9
9
  spec.description = "description: fukung kicks the ass"
10
10
 
11
- spec.files = ["bin", "bin/fukung", "fukung.gemspec", "lib", "lib/fukung.rb", "Rakefile", "README"]
11
+ spec.files = ["a.rb", "bin", "bin/fukung", "fukung.gemspec", "lib", "lib/fukung.rb", "Rakefile", "README"]
12
12
  spec.executables = ["fukung"]
13
13
 
14
14
  spec.require_path = "lib"
@@ -5,7 +5,7 @@ require 'launchy'
5
5
 
6
6
  module Fukung
7
7
  def Fukung.version
8
- '1.1.0'
8
+ '2.0.0'
9
9
  end
10
10
 
11
11
  Host = 'fukung.net'
@@ -27,11 +27,13 @@ module Fukung
27
27
  result! response['Location']
28
28
  end
29
29
 
30
- path = location.gsub(%r|^/v|, '')
31
- raise if path.strip.empty?
32
- raise if path.strip.downcase=='random'
33
- path = "http://" + "#{ MediaHost }/images/#{ path }".squeeze('/')
34
- raise if path=="http://#{ MediaHost }/images/random"
30
+ basename = File.basename(location)
31
+
32
+ #path = location.gsub(%r|^/v|, '')
33
+ #raise if path.strip.empty?
34
+ #raise if path.strip.downcase=='random'
35
+ path = "http://" + "#{ MediaHost }/imgs/#{ basename }".squeeze('/')
36
+ raise if path=="http://#{ MediaHost }/imgs/random"
35
37
  @random = path
36
38
  return @random
37
39
  rescue
metadata CHANGED
@@ -1,84 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: fukung
3
- version: !ruby/object:Gem::Version
4
- hash: 19
5
- prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 0
10
- version: 1.1.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Ara T. Howard
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-07-25 00:00:00 -06:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: launchy
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
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: :runtime
34
- version_requirements: *id001
35
- description: "description: fukung kicks the ass"
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: ! 'description: fukung kicks the ass'
36
28
  email: ara.t.howard@gmail.com
37
- executables:
29
+ executables:
38
30
  - fukung
39
31
  extensions: []
40
-
41
32
  extra_rdoc_files: []
42
-
43
- files:
33
+ files:
34
+ - a.rb
44
35
  - bin/fukung
45
36
  - fukung.gemspec
46
37
  - lib/fukung.rb
47
38
  - Rakefile
48
39
  - README
49
- has_rdoc: true
50
40
  homepage: http://github.com/ahoward/fukung
51
41
  licenses: []
52
-
42
+ metadata: {}
53
43
  post_install_message:
54
44
  rdoc_options: []
55
-
56
- require_paths:
45
+ require_paths:
57
46
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
59
- none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- hash: 3
64
- segments:
65
- - 0
66
- version: "0"
67
- required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 3
73
- segments:
74
- - 0
75
- version: "0"
47
+ required_ruby_version: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
76
57
  requirements: []
77
-
78
58
  rubyforge_project: codeforpeople
79
- rubygems_version: 1.4.2
59
+ rubygems_version: 2.0.3
80
60
  signing_key:
81
- specification_version: 3
61
+ specification_version: 4
82
62
  summary: fukung
83
63
  test_files: []
84
-