firebug 0.0.7

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: 6e9bfb6b2aeffbd50e1f53f1160d0b1daf8c8eda
4
+ data.tar.gz: 33fb4327250bfeaf727fc6216ba049d654689427
5
+ SHA512:
6
+ metadata.gz: c72dc65c4948763c59e0c5b6b872bd201273a4106f7e16f374d52dbed5c5d865c0a94420a79327b8b7ffd23bb9b71734a0ed220cb4773f9de5cece6ad3bfc61c
7
+ data.tar.gz: be6392575269df0e0e0de40c8df6f7e869b0b5df36d4a52031e64358906a3f519efefaf95de0958e5ebe6a74b1ec9fed97b0078959b9b6063a6463228b331873
@@ -0,0 +1,120 @@
1
+ version: 2
2
+
3
+ workspace_root: &workspace_root
4
+ ~/firebug
5
+
6
+ defaults: &defaults
7
+ working_directory: *workspace_root
8
+ docker:
9
+ - image: afrase/firebug-ruby:2.4
10
+
11
+ attach_workspace: &attach_workspace
12
+ attach_workspace:
13
+ at: *workspace_root
14
+
15
+ restore_repo: &restore_repo
16
+ restore_cache:
17
+ name: Restore repository
18
+ keys:
19
+ - repo-{{ .Branch }}-{{ .Revision }}
20
+
21
+ restore_gems: &restore_gems
22
+ restore_cache:
23
+ name: Restore gems
24
+ keys:
25
+ - firebug-{{ checksum "Gemfile.lock" }}
26
+
27
+ jobs:
28
+ # Since a workspace can't persist the root of the working directory we are using the caching mechanism to save
29
+ # the repository.
30
+ checkout-code:
31
+ <<: *defaults
32
+ steps:
33
+ - *restore_repo
34
+ - checkout
35
+ - save_cache:
36
+ key: repo-{{ .Branch }}-{{ .Revision }}
37
+ paths:
38
+ - *workspace_root
39
+
40
+ bundle-dependencies:
41
+ <<: *defaults
42
+ steps:
43
+ - *restore_repo
44
+ - *restore_gems
45
+ - run:
46
+ name: Install Bundler dependencies
47
+ command: |
48
+ bin/bundle install --deployment \
49
+ --path=vendor/bundle \
50
+ --jobs=4 \
51
+ --retry=3
52
+ - save_cache:
53
+ key: firebug-{{ checksum "Gemfile.lock" }}
54
+ paths:
55
+ - vendor/bundle
56
+ - persist_to_workspace:
57
+ root: *workspace_root
58
+ paths:
59
+ - vendor/bundle
60
+
61
+ run-specs:
62
+ <<: *defaults
63
+ parallelism: 1
64
+ steps:
65
+ - *restore_repo
66
+ - *attach_workspace
67
+ - run:
68
+ name: Set bundler path
69
+ command: bundle --path vendor/bundle
70
+ - run:
71
+ name: Setup Code Climate test-reporter
72
+ command: |
73
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
74
+ chmod +x ./cc-test-reporter
75
+ - run:
76
+ name: Run tests
77
+ command: |
78
+ ./cc-test-reporter before-build
79
+ bin/bundle exec rspec --profile 10 \
80
+ --format RspecJunitFormatter \
81
+ --out test_results/rspec.xml \
82
+ --format progress \
83
+ $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
84
+ ./cc-test-reporter after-build -t simplecov coverage/.resultset.json
85
+ - store_test_results:
86
+ path: test_results
87
+ - store_artifacts:
88
+ path: test_results
89
+ destination: test-results
90
+ - store_artifacts:
91
+ path: coverage
92
+ destination: test-coverage
93
+
94
+ run-rubocop:
95
+ <<: *defaults
96
+ steps:
97
+ - *restore_repo
98
+ - *attach_workspace
99
+ - run:
100
+ name: Install rubocop
101
+ command: gem install rubocop rubocop-rspec
102
+ - run:
103
+ name: Run rubocop
104
+ command: rubocop -c .rubocop.yml
105
+
106
+ workflows:
107
+ version: 2
108
+ build-test:
109
+ jobs:
110
+ - checkout-code
111
+ - bundle-dependencies:
112
+ requires:
113
+ - checkout-code
114
+ - run-rubocop:
115
+ requires:
116
+ - checkout-code
117
+ - run-specs:
118
+ requires:
119
+ - bundle-dependencies
120
+ - run-rubocop
@@ -0,0 +1,3 @@
1
+ FROM circleci/ruby:2.4
2
+
3
+ RUN sudo apt-get update && sudo apt-get install mcrypt libmcrypt-dev
data/.editorconfig ADDED
@@ -0,0 +1,15 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.{sh,md}]
13
+ indent_size = 4
14
+ max_line_length = 0
15
+ trim_trailing_whitespace = false
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /vendor/bundle/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /.idea/
11
+ .DS_Store
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,38 @@
1
+ require: rubocop-rspec
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.4
5
+
6
+ Exclude:
7
+ - 'bin/*'
8
+ - 'vendor/**/*'
9
+
10
+ Style/ClassAndModuleChildren:
11
+ Enabled: false
12
+
13
+ Style/Documentation:
14
+ Enabled: false
15
+
16
+ Metrics/LineLength:
17
+ # Commonly used screens these days easily fit more than 80 characters.
18
+ Max: 120
19
+ Exclude:
20
+ - 'spec/**/*'
21
+
22
+ Metrics/MethodLength:
23
+ # Too short methods lead to extraction of single-use methods, which can make
24
+ # the code easier to read (by naming things), but can also clutter the class
25
+ Max: 20
26
+
27
+ Metrics/BlockLength:
28
+ Exclude:
29
+ - 'spec/**/*'
30
+
31
+ Layout/SpaceAroundEqualsInParameterDefault:
32
+ # No space makes the method definition shorter and differentiates
33
+ # from a regular assignment.
34
+ EnforcedStyle: no_space
35
+
36
+ Style/SymbolArray:
37
+ # We do not need to support Ruby 1.9, so this is good to use.
38
+ Enabled: true
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ firebug
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.4.1
@@ -0,0 +1,75 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age,
8
+ body size, disability, ethnicity, gender identity and expression, level of
9
+ experience, nationality, personal appearance, race, religion, or sexual
10
+ identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an
52
+ appointed representative at an online or offline event. Representation of a
53
+ project may be further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project maintainer at afrase91@gmail.com.
59
+ The project maintainer will review and investigate all complaints, and will
60
+ respond in a way that it deems appropriate to the circumstances. The project
61
+ maintainer is obligated to maintain confidentiality with regard to the reporter
62
+ of an incident. Further details of specific enforcement policies may be
63
+ posted separately.
64
+
65
+ Project maintainers who do not follow or enforce the Code of Conduct in good
66
+ faith may face temporary or permanent repercussions as determined by other
67
+ members of the project's leadership.
68
+
69
+ ## Attribution
70
+
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
73
+
74
+ [homepage]: http://contributor-covenant.org
75
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in firebug.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,127 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ firebug (0.0.7)
5
+ actionpack (~> 5.0)
6
+ activerecord (~> 5.0)
7
+ ruby-mcrypt (~> 0.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionpack (5.1.4)
13
+ actionview (= 5.1.4)
14
+ activesupport (= 5.1.4)
15
+ rack (~> 2.0)
16
+ rack-test (>= 0.6.3)
17
+ rails-dom-testing (~> 2.0)
18
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
19
+ actionview (5.1.4)
20
+ activesupport (= 5.1.4)
21
+ builder (~> 3.1)
22
+ erubi (~> 1.4)
23
+ rails-dom-testing (~> 2.0)
24
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
25
+ activemodel (5.1.4)
26
+ activesupport (= 5.1.4)
27
+ activerecord (5.1.4)
28
+ activemodel (= 5.1.4)
29
+ activesupport (= 5.1.4)
30
+ arel (~> 8.0)
31
+ activesupport (5.1.4)
32
+ concurrent-ruby (~> 1.0, >= 1.0.2)
33
+ i18n (~> 0.7)
34
+ minitest (~> 5.1)
35
+ tzinfo (~> 1.1)
36
+ arel (8.0.0)
37
+ ast (2.3.0)
38
+ builder (3.2.3)
39
+ coderay (1.1.2)
40
+ concurrent-ruby (1.0.5)
41
+ crass (1.0.3)
42
+ diff-lcs (1.3)
43
+ docile (1.1.5)
44
+ erubi (1.7.0)
45
+ i18n (0.9.1)
46
+ concurrent-ruby (~> 1.0)
47
+ json (2.1.0)
48
+ loofah (2.1.1)
49
+ crass (~> 1.0.2)
50
+ nokogiri (>= 1.5.9)
51
+ method_source (0.9.0)
52
+ mini_portile2 (2.3.0)
53
+ minitest (5.10.3)
54
+ nokogiri (1.8.1)
55
+ mini_portile2 (~> 2.3.0)
56
+ parallel (1.12.0)
57
+ parser (2.4.0.2)
58
+ ast (~> 2.3)
59
+ powerpack (0.1.1)
60
+ pry (0.11.3)
61
+ coderay (~> 1.1.0)
62
+ method_source (~> 0.9.0)
63
+ rack (2.0.3)
64
+ rack-test (0.8.2)
65
+ rack (>= 1.0, < 3)
66
+ rails-dom-testing (2.0.3)
67
+ activesupport (>= 4.2.0)
68
+ nokogiri (>= 1.6)
69
+ rails-html-sanitizer (1.0.3)
70
+ loofah (~> 2.0)
71
+ rainbow (2.2.2)
72
+ rake
73
+ rake (12.3.0)
74
+ rspec (3.7.0)
75
+ rspec-core (~> 3.7.0)
76
+ rspec-expectations (~> 3.7.0)
77
+ rspec-mocks (~> 3.7.0)
78
+ rspec-core (3.7.0)
79
+ rspec-support (~> 3.7.0)
80
+ rspec-expectations (3.7.0)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.7.0)
83
+ rspec-mocks (3.7.0)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.7.0)
86
+ rspec-support (3.7.0)
87
+ rspec_junit_formatter (0.3.0)
88
+ rspec-core (>= 2, < 4, != 2.12.0)
89
+ rubocop (0.51.0)
90
+ parallel (~> 1.10)
91
+ parser (>= 2.3.3.1, < 3.0)
92
+ powerpack (~> 0.1)
93
+ rainbow (>= 2.2.2, < 3.0)
94
+ ruby-progressbar (~> 1.7)
95
+ unicode-display_width (~> 1.0, >= 1.0.1)
96
+ rubocop-rspec (1.20.1)
97
+ rubocop (>= 0.51.0)
98
+ ruby-mcrypt (0.2.0)
99
+ ruby-progressbar (1.9.0)
100
+ simplecov (0.15.1)
101
+ docile (~> 1.1.0)
102
+ json (>= 1.8, < 3)
103
+ simplecov-html (~> 0.10.0)
104
+ simplecov-html (0.10.2)
105
+ sqlite3 (1.3.13)
106
+ thread_safe (0.3.6)
107
+ tzinfo (1.2.4)
108
+ thread_safe (~> 0.1)
109
+ unicode-display_width (1.3.0)
110
+
111
+ PLATFORMS
112
+ ruby
113
+
114
+ DEPENDENCIES
115
+ bundler
116
+ firebug!
117
+ pry
118
+ rake
119
+ rspec
120
+ rspec_junit_formatter
121
+ rubocop
122
+ rubocop-rspec
123
+ simplecov
124
+ sqlite3
125
+
126
+ BUNDLED WITH
127
+ 1.16.0
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Aaron Frase
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,91 @@
1
+ # Firebug [![CircleCI](https://circleci.com/gh/rvshare/firebug.svg?style=svg)](https://circleci.com/gh/rvshare/firebug)
2
+
3
+ A gem for working with CodeIgniter sessions in ruby.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'firebug'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ ```bash
16
+ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+
21
+ ```bash
22
+ gem install firebug
23
+ ```
24
+
25
+ To use the Rails session store, create an initializer file with:
26
+
27
+ ```ruby
28
+ Firebug.configure do |config|
29
+ config.key = 'encryption key'
30
+ config.table_name = 'sessions'
31
+ end
32
+ ```
33
+
34
+ And then set:
35
+
36
+ ```ruby
37
+ Rails.application.config.session_store :code_igniter_store
38
+ ```
39
+
40
+ If you are using Rails in API mode then you will need to set the middleware:
41
+
42
+ ```ruby
43
+ Rails.application.config.middleware.use ActionDispatch::Session::CodeIgniterStore
44
+ ```
45
+
46
+ ## Usage
47
+
48
+ Serialize a ruby object to PHP's serialized format and unserialize a
49
+ PHP serialized string into a ruby object.
50
+
51
+ ```ruby
52
+ ruby_obj = { foo: 'bar' }
53
+ serialized_obj = Firebug.serialize(ruby_obj) # => a:1:{s:3:"foo";s:3:"bar";}
54
+ result = Firebug.unserialize(serialized_obj) # => {:foo=>"bar"}
55
+
56
+ ruby_obj == result # => true
57
+ ```
58
+
59
+ Encrypt and decrypt data.
60
+
61
+ ```ruby
62
+ key = 'password'
63
+ data = 'super secret data'
64
+
65
+ encrypted = Firebug.encrypt(key, data)
66
+ decrypted = Firebug.decrypt(key, encrypted)
67
+
68
+ data == decrypted # => true
69
+ ```
70
+
71
+ ## Development
72
+
73
+ After checking out the repo, run `bin/setup` to install dependencies.
74
+ Then, run `rake spec` to run the tests. You can also run `bin/console`
75
+ for an interactive prompt that will allow you to experiment.
76
+
77
+ To install this gem onto your local machine, run `bundle exec rake install`.
78
+ To release a new version, update the version number in `version.rb`,
79
+ and then run `bundle exec rake release`, which will create a git tag for the
80
+ version, push git commits and tags, and push the `.gem`file to
81
+ [rubygems.org](https://rubygems.org).
82
+
83
+ ## Contributing
84
+
85
+ Bug reports and pull requests are welcome on GitHub at
86
+ [https://github.com/afrase/firebug](https://github.com/afrase/firebug.)
87
+
88
+ ## License
89
+
90
+ The gem is available as open source under the terms of the
91
+ [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ RuboCop::RakeTask.new do |task|
10
+ task.requires << 'rubocop-rspec'
11
+ end
12
+
13
+ task default: :spec
data/bin/bundle ADDED
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require 'rubygems'
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV['BUNDLER_VERSION']
22
+ end
23
+
24
+ def cli_arg_version # rubocop:disable CyclomaticComplexity,PerceivedComplexity
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless 'update'.start_with?(ARGV.first || ' ') # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index&.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = Regexp.last_match(1) || '>= 0.a'
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV['BUNDLE_GEMFILE']
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path('../../Gemfile', __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when 'gems.rb' then
51
+ gemfile.sub(/\.rb$/, gemfile)
52
+ else
53
+ "#{gemfile}.lock"
54
+ end
55
+ File.expand_path(lockfile)
56
+ end
57
+
58
+ def lockfile_version
59
+ return unless File.file?(lockfile)
60
+ lockfile_contents = File.read(lockfile)
61
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
62
+ Regexp.last_match(1)
63
+ end
64
+
65
+ def bundler_version
66
+ @bundler_version ||= begin
67
+ env_var_version || cli_arg_version ||
68
+ lockfile_version || "#{Gem::Requirement.default}.a"
69
+ end
70
+ end
71
+
72
+ def load_bundler!
73
+ ENV['BUNDLE_GEMFILE'] ||= gemfile
74
+
75
+ # must dup string for RG < 1.8 compatibility
76
+ activate_bundler(bundler_version.dup)
77
+ end
78
+
79
+ def activate_bundler(bundler_version)
80
+ if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new('2.0')
81
+ bundler_version = '< 2'
82
+ end
83
+ gem_error = activation_error_handling do
84
+ gem 'bundler', bundler_version
85
+ end
86
+ return if gem_error.nil?
87
+ require_error = activation_error_handling do
88
+ require 'bundler/version'
89
+ end
90
+ return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
91
+ warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
92
+ exit 42
93
+ end
94
+
95
+ def activation_error_handling
96
+ yield
97
+ nil
98
+ rescue StandardError, LoadError => e
99
+ e
100
+ end
101
+ end
102
+
103
+ m.load_bundler!
104
+
105
+ load Gem.bin_path('bundler', 'bundle') if m.invoked_as_script?
data/bin/console ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'firebug'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ require 'pry'
11
+ Pry.start
data/bin/rake ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rake' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path('../bundle', __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require 'pathname'
15
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', Pathname.new(__FILE__).realpath)
16
+
17
+ require 'rubygems'
18
+ require 'bundler/setup'
19
+
20
+ load Gem.bin_path('rake', 'rake')