shortn-url 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2ac8ad90d454394329b018048d96f45441fc0184
4
+ data.tar.gz: 594d5fa995c82a2983ece7b62b26be59be70aec9
5
+ SHA512:
6
+ metadata.gz: ffd53c8cf9c1b8083ce619709974930ba72e6b6b4a14b5cff94836b5b788ac2f4739daa15104949ae3a866b886b4f0b2bc6db4fc9fce2bc38b94a88740eccf05
7
+ data.tar.gz: 54fca9617706facbabb0c108470babfb4bbdb7fbabd9aa87526158db994b55630e7be73d48f297eccade57f6fa31533bac7e4b8888b46f054bc4d5abec128075
@@ -0,0 +1,2 @@
1
+ e2n�� �֧[U� Lfo�|Ѕ^�~�o��뇊H�y�3����v$ �X�q&
2
+ �~���Zp�H ���Ս3D�Ǹ�WM��-�!����"-r�rP�@�)�8d/O����=�K]�@�w&V�-���ÕQ ����A�:T8�}��8�@��t�SI@A�i��+��1�'�7�Ɵ�6I��E�y� t�Cx�x�4-���@:�-��EJ���xi5;V�� ^�������fK��G�~?"����>(���0��
data.tar.gz.sig CHANGED
Binary file
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
 
3
3
  # file: shortn-url.rb
4
4
 
@@ -7,8 +7,8 @@ require 'nokogiri'
7
7
  class ShortnUrl
8
8
  attr_reader :doc
9
9
 
10
- def initialize(opt={}, app_mgr=nil)
11
- @filepath = opt[:filepath]
10
+ def initialize(filepath)
11
+ @filepath = filepath
12
12
  @doc = Nokogiri::XML(File.open(@filepath,'r').read)
13
13
  node = @doc.xpath("urls/records/url[full_url='']")[0]
14
14
  @next_id = node.attribute('id').value.to_i
metadata CHANGED
@@ -1,14 +1,13 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: shortn-url
3
- version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.1.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.7
6
5
  platform: ruby
7
- authors:
6
+ authors:
8
7
  - James Robertson
9
8
  autorequire:
10
9
  bindir: bin
11
- cert_chain:
10
+ cert_chain:
12
11
  - |
13
12
  -----BEGIN CERTIFICATE-----
14
13
  MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
@@ -30,46 +29,50 @@ cert_chain:
30
29
  j8QMtDwoNf2zfU4g7PjlAqauPKtgeFMbKDF0oUYmFMXp+NaewfB20c5Twx9OE/E5
31
30
  opb3W/ohbZw9owooQXvYJqGvFpnTAnHD
32
31
  -----END CERTIFICATE-----
33
-
34
- date: 2013-02-06 00:00:00 Z
35
- dependencies: []
36
-
32
+ date: 2013-05-19 00:00:00.000000000 Z
33
+ dependencies:
34
+ - !ruby/object:Gem::Dependency
35
+ name: nokogiri
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
37
48
  description:
38
49
  email:
39
50
  executables: []
40
-
41
51
  extensions: []
42
-
43
52
  extra_rdoc_files: []
44
-
45
- files:
53
+ files:
46
54
  - lib/shortn-url.rb
47
55
  homepage:
48
56
  licenses: []
49
-
57
+ metadata: {}
50
58
  post_install_message:
51
59
  rdoc_options: []
52
-
53
- require_paths:
60
+ require_paths:
54
61
  - lib
55
- required_ruby_version: !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: "0"
61
- required_rubygems_version: !ruby/object:Gem::Requirement
62
- none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: "0"
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
67
72
  requirements: []
68
-
69
73
  rubyforge_project:
70
- rubygems_version: 1.8.23
74
+ rubygems_version: 2.0.0.rc.2
71
75
  signing_key:
72
- specification_version: 3
76
+ specification_version: 4
73
77
  summary: shortn-url
74
78
  test_files: []
75
-
metadata.gz.sig CHANGED
Binary file