fossyl 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 547c155930215a26faddf0e942dc683202e2eaa6
4
+ data.tar.gz: 997cc04b1841743ca4cd91de377aa76144b7dc6c
5
+ SHA512:
6
+ metadata.gz: 7e2b0ede55b2479efa2ba98b2eae6b97ea2fc916c50960abc8b3e06a9f337d9fb08c29bc27d677a6f2800deedba5709741342f8e313553f0a20bc846eea1be1e
7
+ data.tar.gz: 3b4e9e5acd719b8b8768915ab9ee58d62def84b3a9573bda48e5accbc3f625c8ee40a66b753c9f36e5928c4a7af829990c01404dd3aab65f16ac83e831eca40b
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - jruby-19mode # JRuby in 1.9 mode
5
+ - rbx-19mode
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fossyl
1
+ # Fossyl [![Build Status][build_status_image]][build_status] [![Code Climate][code_climate_image]][code_climate]
2
2
 
3
3
  Pre-historic Bencoding
4
4
 
@@ -34,6 +34,12 @@ Fossyl.load("li1e3:twoi3ee") # => [1, "two", 3]
34
34
  Fossyl.load("d1:ai1e1:b3:two1:cli1eee") # => { "a" => 1, "b" => "two", "c" => [1] }
35
35
  ```
36
36
 
37
+ ## Supported Platforms
38
+
39
+ * Ruby 1.9.3
40
+ * JRuby _(1.9 mode)_
41
+ * Rubinius _(1.9 mode)_
42
+
37
43
  ## Contributing
38
44
 
39
45
  1. Fork it
@@ -41,3 +47,13 @@ Fossyl.load("d1:ai1e1:b3:two1:cli1eee") # => { "a" => 1, "b" => "two", "c" => [1
41
47
  3. Commit your changes (`git commit -am 'Add some feature'`)
42
48
  4. Push to the branch (`git push origin my-new-feature`)
43
49
  5. Create new Pull Request
50
+
51
+ ## Copyright
52
+ Copyright (c) 2012 [Adam Tanner][email]. See [License][license] for details.
53
+
54
+ [email]: mailto:adam@adamtanner.org
55
+ [license]: https://github.com/adamtanner/fossyl/blob/master/LICENSE.txt
56
+ [build_status]: https://travis-ci.org/adamtanner/fossyl
57
+ [build_status_image]: https://travis-ci.org/adamtanner/fossyl.png
58
+ [code_climate]: https://codeclimate.com/github/adamtanner/fossyl
59
+ [code_climate_image]: https://codeclimate.com/badge.png
data/Rakefile CHANGED
@@ -4,3 +4,5 @@ require "rake/testtask"
4
4
  Rake::TestTask.new do |t|
5
5
  t.pattern = "spec/**/*_spec.rb"
6
6
  end
7
+
8
+ task default: :test
data/fossyl.gemspec CHANGED
@@ -1,11 +1,10 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'fossyl/version'
5
4
 
6
5
  Gem::Specification.new do |gem|
7
6
  gem.name = "fossyl"
8
- gem.version = Fossyl::VERSION
7
+ gem.version = "0.5.1"
9
8
  gem.authors = ["Adam Tanner"]
10
9
  gem.email = ["adam@adamtanner.org"]
11
10
  gem.description = %q{Pre-historic Bencoding}
@@ -16,4 +15,6 @@ Gem::Specification.new do |gem|
16
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
17
  gem.require_paths = ["lib"]
18
+
19
+ gem.add_development_dependency "rake"
19
20
  end
data/lib/fossyl/parser.rb CHANGED
@@ -1,4 +1,6 @@
1
- class Parser
1
+ require "strscan"
2
+
3
+ class Fossyl::Parser
2
4
  attr_reader :scanner
3
5
 
4
6
  def initialize(string)
data/lib/fossyl.rb CHANGED
@@ -1,6 +1,3 @@
1
- require "fossyl/version"
2
- require "fossyl/parser"
3
-
4
1
  module Fossyl
5
2
  InvalidBencoding = Class.new(StandardError)
6
3
 
@@ -20,6 +17,8 @@ module Fossyl
20
17
  end
21
18
 
22
19
  def self.load(string)
23
- Parser.new(string).parse
20
+ Fossyl::Parser.new(string).parse
24
21
  end
25
22
  end
23
+
24
+ require "fossyl/parser"
metadata CHANGED
@@ -1,16 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fossyl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
5
- prerelease:
4
+ version: 0.5.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adam Tanner
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-30 00:00:00.000000000 Z
13
- dependencies: []
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
14
27
  description: Pre-historic Bencoding
15
28
  email:
16
29
  - adam@adamtanner.org
@@ -19,6 +32,7 @@ extensions: []
19
32
  extra_rdoc_files: []
20
33
  files:
21
34
  - .gitignore
35
+ - .travis.yml
22
36
  - Gemfile
23
37
  - LICENSE.txt
24
38
  - README.md
@@ -26,37 +40,29 @@ files:
26
40
  - fossyl.gemspec
27
41
  - lib/fossyl.rb
28
42
  - lib/fossyl/parser.rb
29
- - lib/fossyl/version.rb
30
43
  - spec/fossyl_spec.rb
31
44
  homepage: https://github.com/adamtanner/fossyl
32
45
  licenses: []
46
+ metadata: {}
33
47
  post_install_message:
34
48
  rdoc_options: []
35
49
  require_paths:
36
50
  - lib
37
51
  required_ruby_version: !ruby/object:Gem::Requirement
38
- none: false
39
52
  requirements:
40
- - - ! '>='
53
+ - - '>='
41
54
  - !ruby/object:Gem::Version
42
55
  version: '0'
43
- segments:
44
- - 0
45
- hash: -3067863346800401168
46
56
  required_rubygems_version: !ruby/object:Gem::Requirement
47
- none: false
48
57
  requirements:
49
- - - ! '>='
58
+ - - '>='
50
59
  - !ruby/object:Gem::Version
51
60
  version: '0'
52
- segments:
53
- - 0
54
- hash: -3067863346800401168
55
61
  requirements: []
56
62
  rubyforge_project:
57
- rubygems_version: 1.8.23
63
+ rubygems_version: 2.0.3
58
64
  signing_key:
59
- specification_version: 3
65
+ specification_version: 4
60
66
  summary: Pre-historic Bencoding
61
67
  test_files:
62
68
  - spec/fossyl_spec.rb
@@ -1,3 +0,0 @@
1
- module Fossyl
2
- VERSION = "0.5.0"
3
- end