code_breaker 0.1.0

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: b432ea56d5c58d5b4efc9961536a740a0c461fee
4
+ data.tar.gz: 74789b3396e71a455f0840e55723dd9d27627f1b
5
+ SHA512:
6
+ metadata.gz: 7ba0aadd4a769a1ae3911bfbfb185d4e170c8bdf3d522bb8533ccb44cdee0ca5407dea68b1a92b51d63774049ff2fefd7f56211223f19f2657242771226f3518
7
+ data.tar.gz: d1fa3987e32f3604459d4134b21adcaea853bcb9583387204283e3346f31ceede2304e98a6bdc91417a737768b9e7e2b8cb5e4737e2276b3b070234fdc429daa
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in code_breaker.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Paul Götze
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,88 @@
1
+ # CodeBreaker
2
+
3
+ [![Build Status](https://travis-ci.org/daigaku-ruby/code_breaker.svg?branch=master)](https://travis-ci.org/daigaku-ruby/code_breaker)
4
+ [![Gem Version](https://badge.fury.io/rb/code_breaker.svg)](http://badge.fury.io/rb/code_breaker)
5
+
6
+ CodeBreaker breaks a line of Ruby code into its receiver classes and the methods
7
+ that are called on them.
8
+
9
+ The idea behind this is to make global lines of code like the following one testable:
10
+
11
+ ```ruby
12
+ sum = Rational(2, 3) + 4
13
+ ```
14
+
15
+ By breaking down this line into the receiver classes and called methods you can
16
+ check e.g. whether a code snippet assigns the sum of a Rational and a Fixnum to
17
+ a variable with the name `sum`.
18
+
19
+ Testing global code snippets might be important for testing the code of simple
20
+ programming tasks in learning tools like [Daigaku](https://github.com/daigaku-ruby/daigaku).
21
+
22
+ ## Installation
23
+
24
+ Add this line to your application's Gemfile:
25
+
26
+ ```ruby
27
+ gem 'code_breaker'
28
+ ```
29
+
30
+ And then execute:
31
+
32
+ $ bundle
33
+
34
+ Or install it yourself as:
35
+
36
+ $ gem install 'code_breaker'
37
+
38
+ ## Usage
39
+
40
+ You can break a Ruby code snippet into its receivers and called method:
41
+
42
+ ```ruby
43
+ require 'code_breaker'
44
+
45
+ code_snippet = 'crazy_number = Rational(3, 5) + 42 - Complex(2.3, 6.4) * 1.2'
46
+ CodeBreaker.parse(code_snippet)
47
+ # => {:lvasgn=>[:crazy_number, [Rational, :+, Fixnum, :-, Complex, :*, Float]]}
48
+
49
+ code_snippet = '"hello" + "World"'
50
+ CodeBreaker.parse(code_snippet)
51
+ # => [String, :+, String]
52
+ ```
53
+
54
+ You can also use the Parser class directly:
55
+
56
+ ```ruby
57
+ code_snippet = '"hello" + "World"'
58
+
59
+ parser = CodeBreaker::Parser.new(code_snippet)
60
+ parser.run
61
+ # => [String, :+, String]
62
+
63
+ parser.output
64
+ # => [String, :+, String]
65
+
66
+ parser.input
67
+ # => "\"hello\"+\"world\""
68
+ ```
69
+
70
+ ## Implemented syntax
71
+
72
+ For an overview of the implemented syntax and examples for certain parsed Ruby statement please see the project's [Wiki](https://github.com/daigaku-ruby/code_breaker/wiki).
73
+
74
+ ## Development
75
+
76
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
77
+
78
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
79
+
80
+ ## Contributing
81
+
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/daigaku-ruby/code_breaker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
83
+
84
+
85
+ ## License
86
+
87
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
88
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "code_breaker"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'code_breaker/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "code_breaker"
8
+ spec.version = CodeBreaker::VERSION
9
+ spec.authors = ["Paul Götze"]
10
+ spec.email = ["paul.christoph.goetze@gmail.com"]
11
+
12
+ spec.summary = %q{Breaking a Ruby code snippet into a sequence of classes and their connecting methods.}
13
+ spec.description = %q{Breaking a Ruby code snippet into a sequence of classes and their connecting methods.}
14
+ spec.homepage = "https://github.com/daigaku-ruby/code_breaker"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_dependency "parser", "~> 2.2"
31
+ spec.add_dependency "activesupport", "~> 4"
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.10"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", " ~> 3.2"
36
+ end
@@ -0,0 +1,50 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module Assignments
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ alias :parse_lvasgn_node :parse_as_hash # local variable assignment
12
+ alias :parse_ivasgn_node :parse_as_hash # instance variable assignment
13
+ alias :parse_cvasgn_node :parse_as_hash # class variable assignment
14
+ alias :parse_gvasgn_node :parse_as_hash # global variable assignment
15
+ alias :parse_op_asgn_node :parse_as_hash # operation assignment
16
+ alias :parse_or_asgn_node :parse_as_hash # or assignment
17
+ alias :parse_and_asgn_node :parse_as_hash # and assignment
18
+
19
+ # multiple assignment
20
+ def parse_masgn_node(node)
21
+ lhs, rhs = parse_children(node)
22
+
23
+ values = if rhs.kind_of?(Hash) && rhs.has_key?(:array)
24
+ rhs[:array]
25
+ else
26
+ [rhs] + (1...lhs.count).map { NilClass }
27
+ end
28
+
29
+ { node.type => { lhs => values } }
30
+ end
31
+
32
+ # multiple left hand side
33
+ def parse_mlhs_node(node)
34
+ parse_children(node).map(&:values).flatten
35
+ end
36
+
37
+ # constant assignment
38
+ def parse_casgn_node(node)
39
+ name = node.children[1]
40
+ children = node.children[2]
41
+ value = children.nil? ? name : [name, parse(node.children[2])]
42
+
43
+ { node.type => value }
44
+ end
45
+
46
+ end
47
+
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,60 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module DataTypes
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ def parse_nil_node(node)
12
+ NilClass
13
+ end
14
+
15
+ def parse_true_node(node)
16
+ TrueClass
17
+ end
18
+
19
+ def parse_false_node(node)
20
+ FalseClass
21
+ end
22
+
23
+ def parse_str_node(node)
24
+ String
25
+ end
26
+
27
+ # interpolated executed string
28
+ def parse_xstr_node(node)
29
+ { node.type => parse_children(node).first }
30
+ end
31
+
32
+ def parse_sym_node(node)
33
+ Symbol
34
+ end
35
+
36
+ def parse_float_node(node)
37
+ Float
38
+ end
39
+
40
+ def parse_regexp_node(node)
41
+ Regexp
42
+ end
43
+
44
+ def parse_int_node(node)
45
+ node.children[0].class
46
+ end
47
+
48
+ def parse_hash_node(node)
49
+ { node.type => parse_children(node).inject(:merge).to_h }
50
+ end
51
+
52
+ def parse_pair_node(node)
53
+ { parse(node.children[0]) => parse(node.children[1]) }
54
+ end
55
+
56
+ alias :parse_array_node :parse_as_hash
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,104 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module Keywords
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ alias :parse_or_node :parse_as_hash
12
+ alias :parse_and_node :parse_as_hash
13
+ alias :parse_def_node :parse_as_hash
14
+ alias :parse_module_node :parse_as_hash
15
+ alias :parse_yield_node :parse_as_hash
16
+
17
+ alias :parse_break_node :parse_as_node_type
18
+ alias :parse_next_node :parse_as_node_type
19
+ alias :parse_retry_node :parse_as_node_type
20
+ alias :parse_self_node :parse_as_node_type
21
+ alias :parse_rescue_node :parse_as_hash
22
+ alias :parse_resbody_node :parse_as_hash
23
+ alias :parse_case_node :parse_as_hash
24
+
25
+ def parse_loop_node(node)
26
+ condition = node.children[0]
27
+ body = node.children[1]
28
+
29
+ { node.type => parse(condition), do: parse(body) }
30
+ end
31
+
32
+ alias :parse_while_node :parse_loop_node
33
+ alias :parse_until_node :parse_loop_node
34
+
35
+ def parse_for_node(node)
36
+ variable = node.children[0]
37
+ range = node.children[1]
38
+ body = node.children[2]
39
+
40
+ { node.type => parse(variable), in: parse(range), do: parse(body) }
41
+ end
42
+
43
+ def parse_if_node(node)
44
+ condition = node.children[0]
45
+ if_body = node.children[1]
46
+ else_body = node.children[2]
47
+
48
+ clause = { node.type => parse(condition), then: parse(if_body) }
49
+ clause[:else] = parse(else_body) if else_body
50
+
51
+ clause
52
+ end
53
+
54
+ def parse_module_node(node)
55
+ name = parse(node.children[0])
56
+ body = node.children[1].nil? ? nil : parse(node.children[1])
57
+ value = body ? [name, body] : [name]
58
+
59
+ { node.type => value }
60
+ end
61
+
62
+ def parse_return_node(node)
63
+ children = parse_children(node)
64
+ values = children.length == 1 ? children[0] : children
65
+
66
+ { node.type => values }
67
+ end
68
+
69
+ def parse_kwbegin_node(node)
70
+ rescue_given = node.children.first.type == :rescue
71
+
72
+ if rescue_given
73
+ rescue_part = parse(node.children.first)[:rescue]
74
+
75
+ {
76
+ begin: rescue_part.first,
77
+ rescue: rescue_part.last[:resbody].first
78
+ }
79
+ else
80
+ { begin: parse(node.children.last) }
81
+ end
82
+ end
83
+
84
+ def parse_case_node(node)
85
+ case_part = parse(node.children.first)
86
+ when_parts = node.children[1...-1].map { |child| parse(child) }
87
+ else_part = parse(node.children.last)
88
+
89
+ statement = { case: when_parts.unshift(case_part) }
90
+ statement[:case] << { else: else_part } if else_part
91
+ statement
92
+ end
93
+
94
+ def parse_when_node(node)
95
+ when_part = parse(node.children[0])
96
+ then_part = parse(node.children[1])
97
+
98
+ { when: when_part, then: then_part }
99
+ end
100
+ end
101
+
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,34 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module LanguageElements
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ alias :parse_block_node :parse_as_hash
12
+ alias :parse_args_node :parse_as_hash
13
+ alias :parse_arg_node :parse_as_last_child_hash
14
+ alias :parse_blockarg_node :parse_as_last_child_hash
15
+ alias :parse_restarg_node :parse_as_last_child_hash
16
+ alias :parse_optarg_node :parse_as_hash # optional argument
17
+ alias :parse_kwarg_node :parse_as_last_child_hash # keyword argument
18
+ alias :parse_kwoptarg_node :parse_as_hash # optional keyword argument
19
+ alias :parse_kwrestarg_node :parse_as_last_child_hash # keyword rest argument
20
+
21
+ def parse_block_pass_node(node)
22
+ { node.type => node.children.first.children.last }
23
+ end
24
+
25
+ def parse_splat_node(node)
26
+ children = parse_children(node).flatten(1)
27
+ values = children.length == 1 ? children[0] : children
28
+
29
+ { node.type => values }
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,52 @@
1
+ module CodeBreaker
2
+ module Parsable
3
+ module Node
4
+
5
+ def parse(node)
6
+ return if node.nil?
7
+
8
+ if node.kind_of?(Symbol)
9
+ node
10
+ else
11
+ send("parse_#{node.type}_node", node)
12
+ end
13
+ end
14
+
15
+ def parse_children(node)
16
+ node.children.reduce([]) do |nodes, child|
17
+ nodes << parse(child) unless child.nil?
18
+ nodes
19
+ end
20
+ end
21
+
22
+ def parse_as_hash(node)
23
+ { node.type => parse_children(node) }
24
+ end
25
+
26
+ def parse_as_last_child_hash(node)
27
+ { node.type => node.children.last }
28
+ end
29
+
30
+ def parse_as_node_type(node)
31
+ node.type
32
+ end
33
+
34
+ def method_missing(method, *args, &block)
35
+ node_type = method.to_s.match(/^parse_(.+)_node$/).captures.first
36
+
37
+ if node_type.empty?
38
+ super
39
+ else
40
+ message = [
41
+ "Breaking the node type \"#{node_type}\" is not yet implemented.",
42
+ "You can open an issue on this in the project's Github repo under:",
43
+ "https://github.com/daigaku-ruby/code_breaker/issues/new\n"
44
+ ].join("\n")
45
+
46
+ raise NotImplementedError, message
47
+ end
48
+ end
49
+
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,16 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module Ranges
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ alias :parse_irange_node :parse_as_hash # inclusive range a..b
12
+ alias :parse_erange_node :parse_as_hash # exclusive range a...b
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module VariableTypes
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ alias :parse_const_node :parse_as_last_child_hash
12
+ alias :parse_lvar_node :parse_as_last_child_hash # local variable
13
+ alias :parse_ivar_node :parse_as_last_child_hash # instance variable
14
+ alias :parse_cvar_node :parse_as_last_child_hash # class variable
15
+ alias :parse_gvar_node :parse_as_last_child_hash # global variable
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,23 @@
1
+ require 'active_support/concern'
2
+
3
+ module CodeBreaker
4
+ module Parsable
5
+ module Wrappers
6
+
7
+ extend ActiveSupport::Concern
8
+ include Parsable::Node
9
+
10
+ included do
11
+ def parse_send_node(node)
12
+ if [:Rational, :Complex].include?(node.children[1])
13
+ return node.children[1].to_s.constantize
14
+ end
15
+
16
+ parse_children(node).flatten(1)
17
+ end
18
+
19
+ alias :parse_begin_node :parse_children
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,8 @@
1
+ require 'code_breaker/parsable/node'
2
+ require 'code_breaker/parsable/wrappers'
3
+ require 'code_breaker/parsable/variable_types'
4
+ require 'code_breaker/parsable/data_types'
5
+ require 'code_breaker/parsable/assignments'
6
+ require 'code_breaker/parsable/ranges'
7
+ require 'code_breaker/parsable/keywords'
8
+ require 'code_breaker/parsable/language_elements'
@@ -0,0 +1,32 @@
1
+ require 'code_breaker/parsable'
2
+ require 'parser/current'
3
+ require 'active_support/inflector'
4
+
5
+ module CodeBreaker
6
+ class Parser
7
+ include Parsable::Wrappers
8
+ include Parsable::VariableTypes
9
+ include Parsable::DataTypes
10
+ include Parsable::Assignments
11
+ include Parsable::Ranges
12
+ include Parsable::Keywords
13
+ include Parsable::LanguageElements
14
+
15
+ attr_reader :input
16
+
17
+ def initialize(code)
18
+ @input = code.to_s.strip
19
+ end
20
+
21
+ def run
22
+ unless @output
23
+ ast = ::Parser::CurrentRuby.parse(input)
24
+ @output = parse(ast.loc.node)
25
+ end
26
+
27
+ @output
28
+ end
29
+
30
+ alias :output :run
31
+ end
32
+ end
@@ -0,0 +1,3 @@
1
+ module CodeBreaker
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,9 @@
1
+ require 'code_breaker/version'
2
+ require 'code_breaker/parser'
3
+
4
+ module CodeBreaker
5
+
6
+ def self.parse(code)
7
+ CodeBreaker::Parser.new(code).run
8
+ end
9
+ end
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: code_breaker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul Götze
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: parser
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.2'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.2'
83
+ description: Breaking a Ruby code snippet into a sequence of classes and their connecting
84
+ methods.
85
+ email:
86
+ - paul.christoph.goetze@gmail.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".travis.yml"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/setup
101
+ - code_breaker.gemspec
102
+ - lib/code_breaker.rb
103
+ - lib/code_breaker/parsable.rb
104
+ - lib/code_breaker/parsable/assignments.rb
105
+ - lib/code_breaker/parsable/data_types.rb
106
+ - lib/code_breaker/parsable/keywords.rb
107
+ - lib/code_breaker/parsable/language_elements.rb
108
+ - lib/code_breaker/parsable/node.rb
109
+ - lib/code_breaker/parsable/ranges.rb
110
+ - lib/code_breaker/parsable/variable_types.rb
111
+ - lib/code_breaker/parsable/wrappers.rb
112
+ - lib/code_breaker/parser.rb
113
+ - lib/code_breaker/version.rb
114
+ homepage: https://github.com/daigaku-ruby/code_breaker
115
+ licenses:
116
+ - MIT
117
+ metadata:
118
+ allowed_push_host: https://rubygems.org
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 2.4.6
136
+ signing_key:
137
+ specification_version: 4
138
+ summary: Breaking a Ruby code snippet into a sequence of classes and their connecting
139
+ methods.
140
+ test_files: []