parliament-utils 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.hound.yml +4 -0
  4. data/.rspec +2 -0
  5. data/.rubocop.yml +55 -0
  6. data/.ruby-version +1 -0
  7. data/.travis.yml +5 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +7 -0
  10. data/Instructions - Steps to include in app.md +95 -0
  11. data/LICENSE +7 -0
  12. data/Makefile +16 -0
  13. data/README.md +177 -0
  14. data/Rakefile +6 -0
  15. data/bin/console +14 -0
  16. data/bin/setup +8 -0
  17. data/config/locales/en.yml +387 -0
  18. data/config/puma.rb +20 -0
  19. data/lib/parliament/utils/config/initializers/airbrake.rb +76 -0
  20. data/lib/parliament/utils/config/initializers/assets.rb +11 -0
  21. data/lib/parliament/utils/config/initializers/backtrace_silencers.rb +7 -0
  22. data/lib/parliament/utils/config/initializers/bandiera.rb +3 -0
  23. data/lib/parliament/utils/config/initializers/cookies_serializer.rb +3 -0
  24. data/lib/parliament/utils/config/initializers/filter_parameter_logging.rb +4 -0
  25. data/lib/parliament/utils/config/initializers/inflections.rb +16 -0
  26. data/lib/parliament/utils/config/initializers/mime_types.rb +7 -0
  27. data/lib/parliament/utils/config/initializers/session_store.rb +3 -0
  28. data/lib/parliament/utils/config/initializers/timeout.rb +1 -0
  29. data/lib/parliament/utils/config/initializers/wrap_parameters.rb +9 -0
  30. data/lib/parliament/utils/config/initializers.rb +16 -0
  31. data/lib/parliament/utils/helpers/application_helper.rb +68 -0
  32. data/lib/parliament/utils/helpers/flag_helper.rb +29 -0
  33. data/lib/parliament/utils/helpers/format_helper.rb +18 -0
  34. data/lib/parliament/utils/helpers/houses_helper.rb +80 -0
  35. data/lib/parliament/utils/helpers/parliament_helper.rb +22 -0
  36. data/lib/parliament/utils/helpers/postcode_helper.rb +72 -0
  37. data/lib/parliament/utils/helpers/request_helper.rb +30 -0
  38. data/lib/parliament/utils/helpers/translation_helper.rb +12 -0
  39. data/lib/parliament/utils/helpers/v_card_helper.rb +57 -0
  40. data/lib/parliament/utils/helpers.rb +18 -0
  41. data/lib/parliament/utils/railtie.rb +12 -0
  42. data/lib/parliament/utils/test_helpers/bandiera_helper.rb +19 -0
  43. data/lib/parliament/utils/test_helpers/rails_helper.rb +42 -0
  44. data/lib/parliament/utils/test_helpers/rspec_helper.rb +76 -0
  45. data/lib/parliament/utils/test_helpers/simplecov_helper.rb +20 -0
  46. data/lib/parliament/utils/test_helpers/vcr_helper.rb +83 -0
  47. data/lib/parliament/utils/test_helpers/webmock_helper.rb +13 -0
  48. data/lib/parliament/utils/test_helpers.rb +19 -0
  49. data/lib/parliament/utils/version.rb +5 -0
  50. data/lib/parliament/utils.rb +10 -0
  51. data/log/test.log +0 -0
  52. data/parliament-utils.gemspec +41 -0
  53. metadata +318 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: '09e15bd64d19537e0e9fa58d9a4076d8ef45fe09'
4
+ data.tar.gz: bd42b87e7a053ec1545f7bfe4aae4a0a69a30fd2
5
+ SHA512:
6
+ metadata.gz: 4d716e8c3d204adf87ca949f62a5533c662a70b8c76b71121f976e5fe17851c2918e389bdcacc24f56e1f5e81eba438d2a1995d4299ee9dc162cbd225c677f9d
7
+ data.tar.gz: f0109a25216eb6c706ec6f485519171e822f66a7bfc62d2f3baef53883b5937b9b065bd4eb8017310ecc85a9186c52b53bc4fb97241188a03356d2d820059418
data/.gitignore ADDED
@@ -0,0 +1,15 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.gem
11
+
12
+ .idea
13
+
14
+ # rspec failure tracking
15
+ .rspec_status
data/.hound.yml ADDED
@@ -0,0 +1,4 @@
1
+ ruby:
2
+ config_file: .rubocop.yml
3
+
4
+ fail_on_violations: true
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,55 @@
1
+ Metrics/LineLength:
2
+ Description: 'Limit lines to 120 characters.'
3
+ Max: 120
4
+ IgnoredPatterns: ['\A#', '\A([ ]{2}|[ ]{4})#']
5
+
6
+ Style/SpaceBeforeFirstArg:
7
+ Enabled: false
8
+
9
+ Style/BracesAroundHashParameters:
10
+ Enabled: false
11
+
12
+ Style/IndentHash:
13
+ EnforcedStyle: consistent
14
+
15
+ Style/AlignHash:
16
+ Severity: fatal
17
+ Enabled: true
18
+ EnforcedHashRocketStyle: table
19
+ EnforcedColonStyle: table
20
+
21
+ Style/AlignParameters:
22
+ EnforcedStyle: with_fixed_indentation
23
+
24
+ Style/StringLiterals:
25
+ EnforcedStyle: single_quotes
26
+
27
+ Style/CollectionMethods:
28
+ PreferredMethods:
29
+ collect: 'map'
30
+ collect!: 'map!'
31
+ inject: 'reduce'
32
+ detect: 'find'
33
+ find_all: 'select'
34
+
35
+ Style/DotPosition:
36
+ EnforcedStyle: leading
37
+
38
+ Style/DoubleNegation:
39
+ Enabled: false
40
+
41
+ Style/SpaceAroundOperators:
42
+ # When true, allows most uses of extra spacing if the intent is to align
43
+ # with an operator on the previous or next line, not counting empty lines
44
+ # or comment lines.
45
+ AllowForAlignment: true
46
+
47
+ Style/FrozenStringLiteralComment:
48
+ Enabled: false
49
+
50
+ AllCops:
51
+ Exclude:
52
+ - '*.gemspec'
53
+ - 'vendor/**/*'
54
+ - 'spec/**/*'
55
+ - 'tmp/**/*'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.0
5
+ before_install: gem install bundler -v 1.15.1
@@ -0,0 +1,74 @@
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, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ 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 appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ 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 team at mattrayner1@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in parliament-utils.gemspec
4
+ gemspec
5
+
6
+ # Include coveralls for CI coverage reports
7
+ gem 'coveralls', require: false
@@ -0,0 +1,95 @@
1
+ ## Integration into Parliament Applications
2
+
3
+ The following steps can be followed to include this gem in your application:
4
+
5
+ *Gemfile*
6
+
7
+ 1. Add `gem 'parliament-utils'` to Gemfile, below `parliament-grom-decorators`
8
+ 2. Ensure latest version of `pugin` gem _version tbc_
9
+
10
+ *config*
11
+ 3. Delete `config/initializers` folder
12
+ 4. Delete `config/puma.rb` file
13
+ 5. Add `require 'parliament/utils'` to `config/application.rb` file, below `require 'pugin'`
14
+
15
+ *spec/spec_helper*
16
+ 5. Remove all contents from `spec/spec_helper`
17
+
18
+ *spec/rails_helper*
19
+ 6. Remove VCR and RSpec configuration blocks
20
+ 7. Remove the following code, if it exists
21
+
22
+ ```ruby
23
+ `require 'parliament/ntriple'`
24
+ `require 'vcr'`
25
+ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
26
+ ```
27
+
28
+ 8. Add the following code:
29
+
30
+ ```ruby
31
+ require 'parliament/utils/test_helpers'
32
+ RSpec.configure do |config|
33
+ Parliament::Utils::TestHelpers.included_modules.each do |m|
34
+ m.load_rspec_config(config)
35
+ end
36
+ end
37
+ ```
38
+
39
+ *spec/helpers*
40
+
41
+ 9. Delete `flag_helper_spec.rb` file, if it exists
42
+
43
+ *spec/controllers/concerns*
44
+
45
+ 10. Delete `postcode_helper_spec.rb` file, if it exists
46
+
47
+ *app/controllers/concerns*
48
+
49
+ 11. Delete `format_helper.rb`, `houses_helper.rb`, `parliament_helper.rb`, `postcode_helper.rb`, `request_helper.rb`, `v_card_helper.rb` files, if they exist
50
+
51
+ *app/controllers/application_controller*
52
+ 12. Remove the following references to Helpers, if they exist
53
+
54
+ ```
55
+ require 'houses_helper'
56
+ require 'request_helper'
57
+ require 'parliament_helper'
58
+ require 'format_helper'
59
+ require 'v_card_helper'
60
+ include HousesHelper
61
+ include RequestHelper
62
+ include ParliamentHelper
63
+ include FormatHelper
64
+ include VCardHelper
65
+ ```
66
+
67
+ 14. Add `require 'parliament/utils'`
68
+ 15. Add the following `include` statements to the `ApplicationController` class (ResourceHelper and VCardHelper may not be required in all apps)
69
+
70
+ ```ruby
71
+ include ResourceHelper
72
+ include Parliament::Utils::Helpers::ApplicationHelper
73
+ include Parliament::Utils::Helpers::VCardHelper
74
+ ```
75
+
76
+ 16. Remove `data_check`, `data_url`, `build_request`, `populate_alternates` methods, if they exist
77
+
78
+ *app/helpers*
79
+
80
+ 17. Delete `application_helper.rb`, `flag_helper.rb` files, if they exist
81
+
82
+ *Referencing new gem modules*
83
+
84
+ 18. Find all instances of the Helpers mentioned below (in entire project) and replace as required:
85
+
86
+ ```
87
+ Replace `ApplicationHelper` with `Parliament::Utils::Helpers::ApplicationHelper`
88
+ Replace `FlagHelper` with `Parliament::Utils::Helpers::FlagHelper`
89
+ Replace `FormatHelper` with `Parliament::Utils::Helpers::FormatHelper`
90
+ Replace `HousesHelper` with `Parliament::Utils::Helpers::HousesHelper`
91
+ Replace `ParliamentHelper` with `Parliament::Utils::Helpers::ParliamentHelper`
92
+ Replace `PostcodeHelper` with `Parliament::Utils::Helpers::PostcodeHelper`
93
+ Replace `RequestHelper` with `Parliament::Utils::Helpers::RequestHelper`
94
+ Replace `VCardHelper` with `Parliament::Utils::Helpers::VCardHelper`
95
+ ```
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2016-2017 United Kingdom Parliament
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Makefile ADDED
@@ -0,0 +1,16 @@
1
+ gemset:
2
+ rvm gemset create parliament-utils
3
+ rvm --force gemset empty parliament-utils
4
+ rvm gemset use parliament-utils
5
+
6
+ test: gemset
7
+ bundle install
8
+ bundle exec rake
9
+
10
+ build:
11
+ rm -f parliament-utils-*.gem
12
+ gem build parliament-utils.gemspec
13
+
14
+ release: build test
15
+ gem push parliament-utils-*.gem
16
+ rm parliament-utils-*.gem
data/README.md ADDED
@@ -0,0 +1,177 @@
1
+ # Parliament::Utils
2
+
3
+ [parliament-utils][parliament-utils], created by the Parliamentary Digital Service, holds all reusable application configuration, test set up and generic helper methods. It is intended to be used across all applications making up the UK Parliament's website.
4
+
5
+ > **NOTE:** This gem is in active development and is likely to change at short notice. It is not recommended that you use this in any production environment.
6
+
7
+ ## Requirements
8
+
9
+ [parliament-utils][parliament-utils] requires the following:
10
+
11
+ * [Ruby][ruby] - [click here][ruby-version] for the exact version
12
+ * [Bundler][bundler]
13
+
14
+ ## Installation
15
+
16
+ Within your application, add this line to your application's `Gemfile`:
17
+
18
+ ```ruby
19
+ gem 'parliament-utils'
20
+ ```
21
+
22
+ Once you add the gem to your `Gemfile` run:
23
+
24
+ ```ruby
25
+ bundle install
26
+ ```
27
+
28
+ ### Usage
29
+
30
+ Follow installation instructions below to integrate the [parliament-utils][parliament-utils] gem into an existing application
31
+
32
+ Now all application configuration, test set up and helper methods should be available within your application.
33
+
34
+ ### Instructions
35
+
36
+ The following steps can be followed to include this gem in your application:
37
+
38
+ *Gemfile*
39
+
40
+ 1. Add `gem 'parliament-utils'` to Gemfile, below `parliament-grom-decorators`
41
+ 2. Ensure latest version of `pugin` gem _version tbc_
42
+
43
+ *config*
44
+ 3. Delete `config/initializers` folder
45
+ 4. Delete `config/puma.rb` file
46
+ 5. Add `require 'parliament/utils'` to `config/application.rb` file, below `require 'pugin'`
47
+
48
+ *spec/spec_helper*
49
+ 5. Remove all contents from `spec/spec_helper`
50
+
51
+ *spec/rails_helper*
52
+ 6. Remove VCR and RSpec configuration blocks
53
+ 7. Remove the following code, if it exists
54
+
55
+ ```ruby
56
+ `require 'parliament/ntriple'`
57
+ `require 'vcr'`
58
+ Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
59
+ ```
60
+
61
+ 8. Add the following code:
62
+
63
+ ```ruby
64
+ require 'parliament/utils/test_helpers'
65
+ RSpec.configure do |config|
66
+ Parliament::Utils::TestHelpers.included_modules.each do |m|
67
+ m.load_rspec_config(config)
68
+ end
69
+ end
70
+ ```
71
+
72
+ *spec/helpers*
73
+
74
+ 9. Delete `flag_helper_spec.rb` file, if it exists
75
+
76
+ *spec/controllers/concerns*
77
+
78
+ 10. Delete `postcode_helper_spec.rb` file, if it exists
79
+
80
+ *app/controllers/concerns*
81
+
82
+ 11. Delete `format_helper.rb`, `houses_helper.rb`, `parliament_helper.rb`, `postcode_helper.rb`, `request_helper.rb`, `v_card_helper.rb` files, if they exist
83
+
84
+ *app/controllers/application_controller*
85
+ 12. Remove the following references to Helpers, if they exist
86
+
87
+ ```
88
+ require 'houses_helper'
89
+ require 'request_helper'
90
+ require 'parliament_helper'
91
+ require 'format_helper'
92
+ require 'v_card_helper'
93
+ include HousesHelper
94
+ include RequestHelper
95
+ include ParliamentHelper
96
+ include FormatHelper
97
+ include VCardHelper
98
+ ```
99
+
100
+ 14. Add `require 'parliament/utils'`
101
+ 15. Add the following `include` statements to the `ApplicationController` class (ResourceHelper and VCardHelper may not be required in all apps)
102
+
103
+ ```ruby
104
+ include ResourceHelper
105
+ include Parliament::Utils::Helpers::ApplicationHelper
106
+ include Parliament::Utils::Helpers::VCardHelper
107
+ ```
108
+
109
+ 16. Remove `data_check`, `data_url`, `build_request`, `populate_alternates` methods, if they exist
110
+
111
+ *app/helpers*
112
+
113
+ 17. Delete `application_helper.rb`, `flag_helper.rb` files, if they exist
114
+
115
+ *Referencing new gem modules*
116
+
117
+ 18. Find all instances of the Helpers mentioned below (in entire project) and replace/use as required:
118
+
119
+ ```
120
+ Replace `ApplicationHelper` with `Parliament::Utils::Helpers::ApplicationHelper`
121
+ Replace `FlagHelper` with `Parliament::Utils::Helpers::FlagHelper`
122
+ Replace `FormatHelper` with `Parliament::Utils::Helpers::FormatHelper`
123
+ Replace `HousesHelper` with `Parliament::Utils::Helpers::HousesHelper`
124
+ Replace `ParliamentHelper` with `Parliament::Utils::Helpers::ParliamentHelper`
125
+ Replace `PostcodeHelper` with `Parliament::Utils::Helpers::PostcodeHelper`
126
+ Replace `RequestHelper` with `Parliament::Utils::Helpers::RequestHelper`
127
+ Replace `VCardHelper` with `Parliament::Utils::Helpers::VCardHelper`
128
+ ```
129
+
130
+ ## Getting Started with Development
131
+
132
+ To clone the repository and set up the dependencies, run the following:
133
+
134
+ ```bash
135
+ git clone https://github.com/ukparliament/parliament-utils.git
136
+ cd parliament-utils
137
+ bundle install
138
+ ```
139
+
140
+ ### Running Tests
141
+
142
+ We use [Rspec][rspec] as our testing framework and tests can be run using:
143
+
144
+ ```bash
145
+ bundle exec rake
146
+ ```
147
+
148
+ ## Contributing
149
+
150
+ 1. Fork the repository
151
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
152
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
153
+ 4. Push to the branch (`git push origin my-new-feature`)
154
+ 5. Ensure your changes are tested using [Rspec][rspec]
155
+ 6. Create a new Pull Request
156
+
157
+ ## License
158
+
159
+ [parliament-utils][parliament-utils] is licensed under the [Open Parliament Licence][info-license].
160
+
161
+ [ruby]: https://www.ruby-lang.org/en/
162
+ [bundler]: http://bundler.io
163
+ [rspec]: http://rspec.info
164
+ [parliament-utils]: https://github.com/ukparliament/parliament.uk-parliament-utils
165
+ [pds]: https://www.parliament.uk/mps-lords-and-offices/offices/bicameral/parliamentary-digital-service/
166
+ [ruby-version]: https://github.com/ukparliament/pugin/blob/master/.ruby-version
167
+ [rails]: http://rubyonrails.org
168
+ [haml]: http://haml.info
169
+
170
+ [info-travis]: https://travis-ci.org/ukparliament/pugin
171
+ [shield-travis]: https://img.shields.io/travis/ukparliament/pugin.svg
172
+
173
+ [info-coveralls]: https://coveralls.io/github/ukparliament/pugin
174
+ [shield-coveralls]: https://img.shields.io/coveralls/ukparliament/pugin.svg
175
+
176
+ [info-license]: http://www.parliament.uk/site-information/copyright/open-parliament-licence/
177
+ [shield-license]: https://img.shields.io/badge/license-Open%20Parliament%20Licence-blue.svg
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 "parliament/utils"
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(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here