mwo 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d8c37c2d668fd4bebc700413160e2ee27b3b0341
4
+ data.tar.gz: 26dbc7fe6d2b034e9595670c657925e42caa84de
5
+ SHA512:
6
+ metadata.gz: c5a089f1b5ee71f294928790c72c0de49a8fa96ba728cb82b1d9f920f65a1516e6ada5931abafc5a11d8df99957eeae3101b7923f702e87c489c590dab21ca40
7
+ data.tar.gz: 93be5aee3af629af2eea5056734438e91a4269272312a6a4aa0338a5df0a398d4be941b3b2f0c2b71c994b7fe9a396279b00d0b17c02a4152676c65907b71e2f
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+
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
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
15
+ .ruby-version
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ cache: bundler
3
+
4
+ rvm:
5
+ - 2.0.0
6
+
7
+ script: 'bundle exec rake'
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in mwo.gemspec
4
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,13 @@
1
+ guard 'rspec', cmd: 'bundle exec rspec' do
2
+
3
+ # watch /lib/ files
4
+ watch(%r{^lib/(.+).rb$}) do |m|
5
+ "spec/#{m[1]}_spec.rb"
6
+ end
7
+
8
+ # watch /spec/ files
9
+ watch(%r{^spec/(.+).rb$}) do |m|
10
+ "spec/#{m[1]}.rb"
11
+ end
12
+
13
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Buddy Magsipoc
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Mwo
2
+
3
+ Ruby gem for interfacing with Mechwarrior Online's public API
4
+
5
+ http://mwomercs.com/forums/topic/164685-betatesting-for-our-json-reference-files-the-start-of-the-api-details-within/
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'mwo'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install mwo
22
+
23
+ ## Usage
24
+
25
+ ### Weapons
26
+
27
+ Get a list of all weapons
28
+
29
+ - [x] MWO::Weapon.all
30
+
31
+ Scoped weapons
32
+
33
+ - [ ] MWO::Weapon.ballistic
34
+ - [ ] MWO::Weapon.energy
35
+ - [ ] MWO::Weapon.missile
36
+
37
+ ### Mechs
38
+
39
+ #### By Faction
40
+
41
+ - [ ] MWO::Mech.all
42
+ - [ ] MWO::Mech.inner_sphere
43
+ - [ ] MWO::Mech.clan
44
+
45
+ #### By Weight class
46
+
47
+ - [ ] MWO::Mech.lights
48
+ - [ ] MWO::Mech.mediums
49
+ - [ ] MWO::Mech.heavies
50
+ - [ ] MWO::Mech.assualts
51
+
52
+ #### Chain em
53
+
54
+ MWO::Mech.clan.lights
55
+ MWO::Mech.inner_sphere.assaults
56
+
57
+ ### Omniparts
58
+
59
+ - [ ] MWO::Omniparts.all
60
+
61
+ ## Contributing
62
+
63
+ 1. Fork it ( https://github.com/[my-github-username]/mwo/fork )
64
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
65
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
66
+ 4. Push to the branch (`git push origin my-new-feature`)
67
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require "rspec/core/rake_task"
2
+ require "bundler/gem_tasks"
3
+
4
+ # Default directory to look in is `/specs`
5
+ # Run with `rake spec`
6
+ RSpec::Core::RakeTask.new(:spec) do |task|
7
+ task.rspec_opts = ['--color', '--format', 'documentation']
8
+ end
9
+
10
+ task default: :spec
11
+
12
+ task :console do
13
+ sh "irb -rubygems -I lib -r mwo.rb"
14
+ end