mtg-card-finder 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b3ef0807c63a5a086a079ad033df179663072a52
4
- data.tar.gz: 86dc8a9b33c85029dcb066519af2c6d9f45010c5
3
+ metadata.gz: f0c3b517df14d148c68f631d8add2f7723fc8fbb
4
+ data.tar.gz: ecec30a9f2d3a6fd0a3396f8998a495fb4c9065c
5
5
  SHA512:
6
- metadata.gz: 0ae65f6155e13767c22f177a2bb4a0df7fa28c40bce538511ae57c13b0c618a8f820a7aad72b3de57abdce9bab1468a0a2d4086a3415876efdc5d18d42e929a6
7
- data.tar.gz: 39d1c0817576e427a47063b83f289a633d26875a4109731d3f627b2d7836a6a6bef21072eaf18c252b346bb5a1e98faa14470511d49d15cdf903608f501324ba
6
+ metadata.gz: 9f024dd2f821f2bb0ecab9c790ddf381d037c51b26b7c47cd0e05da0d4bed2365b5480a82b950c8c405791506557e22a88d6b31c3cdfb8cc04e4cd26ce712c50
7
+ data.tar.gz: dc5aa5d6cd74a626cb84fc3397cb3f912292c0da7f962a25bdf1e3a32f94a6b125a7eb54b872a46a614ba1eab1b0b56a93004fb080b4009b16104044d1981131
data/README.md CHANGED
@@ -19,19 +19,25 @@ And then execute:
19
19
 
20
20
  Or install it yourself as:
21
21
 
22
- $ gem install mtg-card-finder
22
+ ```ruby
23
+ $ gem install mtg-card-finder
24
+ ```
23
25
 
24
26
  ## Usage
25
27
  Type the below on your terminal to begin the app:
26
28
 
29
+ ```ruby
27
30
  $ mtg-card-finder
31
+ ```
28
32
 
29
33
  When the application begins, choose between four different pricing options:
30
34
 
35
+ ```
31
36
  [1] Standard: rising cards today
32
37
  [2] Modern: rising cards today
33
38
  [3] Standard: crashing cards today
34
39
  [4] Modern: crashing cards today
40
+ ```
35
41
 
36
42
  After you have made your choice the app will load a list of the top 40-50 for the day.
37
43
 
@@ -40,15 +46,17 @@ and the amount that it has 'raised' or 'fallen' for the day.
40
46
 
41
47
  You will then be asked for four more additional options:
42
48
 
49
+ ```
43
50
  [1] search for a different format's market?
44
51
  [2] save the current card search listing into a CSV file?
45
52
  [3] purchase one of the queried cards in the open market?
46
53
  [4] exit the program?
54
+ ```
47
55
 
48
- Option 1 will let you search for another of the initially provided formats at the start of the application.
49
- Option 2 will locally save the queried listing into a .csv file.
50
- Option 3 will provide you with a url link that directs you to eBay's lowest priced bids for the chosen card.
51
- Option 4 exits the application.
56
+ Option `1` will let you search for another of the initially provided formats at the start of the application.
57
+ Option `2` will locally save the queried listing to your current directory.
58
+ Option `3` will provide you with a url link that directs you to eBay's lowest priced bids for the chosen card.
59
+ Option `4` exits the application.
52
60
 
53
61
  ## Development
54
62
 
@@ -3,8 +3,19 @@ require 'sqlite3'
3
3
  require "tco"
4
4
  require "mechanize"
5
5
  require "nokogiri"
6
- require "require_all"
6
+ require 'fileutils' # for creating the directory
7
+
8
+ DIR = "db"
9
+ FileUtils.makedirs(DIR)
7
10
 
8
11
  DB = {:conn => SQLite3::Database.new("db/cards.db")} #this gives me validation to reach the database that module Persistable interacts with
9
12
 
10
- require_all 'lib/mtg_card_finder' #this allows me to simultaneously require everything in lib/mtg_card_finder
13
+ require_relative '../lib/mtg_card_finder/cli'
14
+ require_relative '../lib/mtg_card_finder/color'
15
+ require_relative '../lib/mtg_card_finder/mtg'
16
+ require_relative '../lib/mtg_card_finder/parser'
17
+ require_relative '../lib/mtg_card_finder/concerns/persistable'
18
+ require_relative '../lib/mtg_card_finder/tables/modern_fall'
19
+ require_relative '../lib/mtg_card_finder/tables/modern_rise'
20
+ require_relative '../lib/mtg_card_finder/tables/standard_fall'
21
+ require_relative '../lib/mtg_card_finder/tables/standard_rise'
@@ -1,4 +1,4 @@
1
- require_relative '../config/environment'
2
-
3
- module MTGCardFinder
1
+ module MTGCardFinder #needs to be defined first so that environment loads correctly
4
2
  end
3
+
4
+ require_relative '../config/environment'
@@ -1,3 +1,3 @@
1
1
  module MTGCardFinder
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -14,29 +14,17 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/JuanGongora/mtg-card-finder"
15
15
  spec.license = "MIT"
16
16
 
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- # if spec.respond_to?(:metadata)
20
- # spec.metadata['allowed_push_host'] = "Set to 'http://mygemserver.com'"
21
- # else
22
- # raise "RubyGems 2.0 or newer is required to protect against " \
23
- # "public gem pushes."
24
- # end
25
-
26
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
- f.match(%r{^(test|spec|features)/})
28
- end
29
-
17
+ spec.files = `git ls-files`.split($\)
30
18
  spec.executables << "mtg-card-finder"
31
- spec.require_paths = ["lib"]
19
+ spec.require_paths = ["lib", "db"]
32
20
 
33
21
  spec.add_development_dependency "bundler", "~> 1.14"
34
22
  spec.add_development_dependency "rake", "~> 12.0"
35
23
  spec.add_development_dependency "pry", "~> 0.10.4"
24
+ spec.add_dependency "rubysl-fileutils", "~> 2.0.3"
36
25
  spec.add_dependency "rubysl-open-uri", "~> 2.0"
37
26
  spec.add_dependency "nokogiri", "~> 1.7.1"
38
27
  spec.add_dependency "tco", "~> 0.1.8"
39
28
  spec.add_dependency "sqlite3", "~> 1.3.13"
40
29
  spec.add_dependency "mechanize", "~> 2.7.5"
41
- spec.add_dependency "require_all", "~> 1.4"
42
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtg-card-finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gongora
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-23 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.10.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubysl-fileutils
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.3
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.3
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubysl-open-uri
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -122,20 +136,6 @@ dependencies:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
138
  version: 2.7.5
125
- - !ruby/object:Gem::Dependency
126
- name: require_all
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.4'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1.4'
139
139
  description: Find the highest rising/falling card prices on the MTG open market
140
140
  email:
141
141
  - gongora.animations@gmail.com
@@ -155,7 +155,6 @@ files:
155
155
  - bin/mtg-card-finder
156
156
  - bin/setup
157
157
  - config/environment.rb
158
- - db/cards.db
159
158
  - lib/mtg_card_finder.rb
160
159
  - lib/mtg_card_finder/cli.rb
161
160
  - lib/mtg_card_finder/color.rb
@@ -177,6 +176,7 @@ post_install_message:
177
176
  rdoc_options: []
178
177
  require_paths:
179
178
  - lib
179
+ - db
180
180
  required_ruby_version: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ">="
File without changes