touringplans 0.1.0 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac65da412a524dde7cc16db943d0f55ab38984bd5b9736fa9c209a7e6da8a5f3
4
- data.tar.gz: e46b800c1ccd95df6e26842610a3976b1bc1bff6859de260819718cf3f4b11c0
3
+ metadata.gz: 73b59b67226a12fe4d77223e9068c45928359062571a0c0571a769a6b22c3df2
4
+ data.tar.gz: 40253a1085b837c4a99bec95d70ce9f79c75f189f3461acd463ad7edce8d9307
5
5
  SHA512:
6
- metadata.gz: '08b04c00ddbbc5fc1032e6f715c0e31d65476918080ecf423c8891967cf8654709ed19cf33c18f1a4a2355921e129a3b58938e457e9883b91a1327fe14f4f6c1'
7
- data.tar.gz: bae9ce0a3abeef04449087c28af3ec86040985d52713fa17d31fcb76c6f0e36282c46bba1a6e672d50dcf08c5bb35e2f74ffbfa8b9be273ec5ad3f32a73b5cd1
6
+ metadata.gz: 605df55c3dc98501e5892af6e9b3a6ec6d02a95048973fae82b66c80ba2626e93f4dd2253dd1f2a1db5388b84ed9785a5ca9270fb327f01adf728cd39c738921
7
+ data.tar.gz: 86e2240776b188df0128d40cfc4ef9ddb108ea609bc91a0f4493fc4cfc0cd8ce09b7746ee9f3eb8e3d6bf3526163143bae2249412d5d94e15363f2142b3e1787
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml CHANGED
@@ -1,5 +1,13 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 2.6
3
+ SuggestExtensions: false
4
+ NewCops: enable
5
+
6
+ Style/FrozenStringLiteralComment:
7
+ Enabled: false
8
+
9
+ Style/RaiseArgs:
10
+ Enabled: false
3
11
 
4
12
  Style/StringLiterals:
5
13
  Enabled: true
@@ -10,4 +18,11 @@ Style/StringLiteralsInInterpolation:
10
18
  EnforcedStyle: double_quotes
11
19
 
12
20
  Layout/LineLength:
13
- Max: 120
21
+ Max: 200
22
+
23
+ Metrics/BlockLength:
24
+ Exclude:
25
+ - "spec/*"
26
+
27
+ Metrics/MethodLength:
28
+ Max: 20
data/.version CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.6
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at brett@bigcartel.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile CHANGED
@@ -4,11 +4,17 @@ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in touringplans.gemspec
6
6
  gemspec
7
-
7
+ # development
8
+ gem "awesome_print", "~> 1.9", ">= 1.9.2"
9
+ gem "pry", "~> 0.14.1"
8
10
  gem "rake", "~> 13.0"
11
+ gem "rubocop", "~> 1.7", require: false
9
12
 
10
- gem "minitest", "~> 5.0"
11
-
12
- gem "rubocop", "~> 1.7"
13
+ # testing
14
+ gem "rspec", "~> 3.0"
13
15
 
14
- gem 'httparty', '~> 0.19.0'
16
+ ## custom for gem
17
+ # connect to the API
18
+ gem "httparty", "~> 0.19.0"
19
+ # convert httparty hash to objects
20
+ gem 'dry-struct', '~> 1.4'
data/Rakefile CHANGED
@@ -1,16 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "bundler/gem_tasks"
4
- require "rake/testtask"
4
+ require "rspec/core/rake_task"
5
5
 
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << "test"
8
- t.libs << "lib"
9
- t.test_files = FileList["test/**/*_test.rb"]
10
- end
6
+ RSpec::Core::RakeTask.new(:spec)
11
7
 
12
8
  require "rubocop/rake_task"
13
9
 
14
10
  RuboCop::RakeTask.new
15
11
 
16
- task default: %i[test rubocop]
12
+ task default: %i[spec rubocop]
data/bin/console CHANGED
@@ -8,8 +8,8 @@ require "touringplans"
8
8
  # with your gem easier. You can also use a different console, if you like.
9
9
 
10
10
  # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
11
+ require "pry"
12
+ Pry.start
13
13
 
14
- require "irb"
15
- IRB.start(__FILE__)
14
+ # require "irb"
15
+ # IRB.start(__FILE__)