teachable-jg 0.0.8 → 0.0.9
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 +4 -4
- data/README.md +13 -3
- data/lib/teachable/jg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea3895eae3ecfea3d1a7796ac245c87d56067a9
|
4
|
+
data.tar.gz: df56a3ade5182a7139af2e2d0393d901c34550a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8806c2bd06024a61cd9c770ffa50b230302e95372531a9c4b019e76c422fbaf3e9a48c259a74e627dbf4d06f833f0bdcc80ef98b1ef089a0bd3134f8d4bf7c83
|
7
|
+
data.tar.gz: 73daff30bf48721cf123da2546d0d6827f83740e46973ddf3bf372bbea68c3e78b50a3a4eea46e6c3e7d41c3b56f151d3e6c7b41ece3025dce30552350445d07
|
data/README.md
CHANGED
@@ -20,15 +20,25 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
To install using Bundler grab the latest stable version:
|
22
22
|
|
23
|
-
gem 'teachable-jg', '~> 0.0.
|
23
|
+
gem 'teachable-jg', '~> 0.0.8'
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
|
27
|
+
Use this gem to as a wrapper to easily register and authorize users, create, pull, and delete orders via the Teachable Mock API.
|
28
|
+
|
29
|
+
Some handy methods at your disposal one you're authorized:
|
30
|
+
|
31
|
+
client = Teachable::Jg::Client.new(email: , password: )
|
32
|
+
|
33
|
+
if client.authorized is true, you then have access methods such as
|
34
|
+
|
35
|
+
'user_info,' 'create_order,' 'delete_orders,' 'orders'
|
36
|
+
|
37
|
+
You can also register a new user easily by passing "registration: true" along with email and password when initializing a client.
|
28
38
|
|
29
39
|
## Development
|
30
40
|
|
31
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
41
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment. If 'bin/console' causes trouble, try 'rake console' instead.
|
32
42
|
|
33
43
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
34
44
|
|
data/lib/teachable/jg/version.rb
CHANGED