cronit 1.0.0 → 1.0.3

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: a7fc6d6664b87c469755e770124087f8eb1e504b9ac53bd34df5949a2da16de9
4
- data.tar.gz: bc8376831c45faa4705668328e9a62f4b71480c81177a451cc3847223e00898a
3
+ metadata.gz: 7fcd9482e2ffc9969dc99060aad2163b4f18e851fc06046e3a1336c30614ab63
4
+ data.tar.gz: a46e052aebee361d05f2cf59ed518828939b09a80af7e21c371dc5fb324804d9
5
5
  SHA512:
6
- metadata.gz: f7ecfb068b64f7ac8cc796cc0b1032c4fa673e153498d4c15b992406d58b976154a3b75cc26c9aee07abb36eb0b8c27ed47102f49e50bfde57d18d5d002afb88
7
- data.tar.gz: 7a01d4b3cecd2fb59c470cb51c2851a1861157dfb778483505a9da47b4a8f12bc61657e8ca002b9dec1958abfe19ad5292ff2e276a6e6908a9b8d542d18e89d8
6
+ metadata.gz: ee647e28049fa71b63ff9d2dfae96a2da701c6b2461b8be610be8c8948e0677442bbcec27d2460820e745facc04808c2362135986b6175b92f81f7d710ae22b3
7
+ data.tar.gz: cbd6907c4f9e8b7fd74ecf54bf48a7a0c386cb3f038c09d04fb277f4a697e439bdccbba932e515e555780cc608907acd0853770b16957357010e7065d49918f2
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Cronit
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/cronit`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Welcome to the Cronit Gem, which is the Ruby bindings for the Cronit application API.
4
+ Cronit ((https://cronit.app)[https://cronit.app]) is an online cronjob scheduling application you can use to plan and execute recurring tasks online.
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,14 +21,15 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- 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`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
24
+ Use this gem by creating an instance of the Cronit client (using the API key availble in your Cronit account):
25
+ ```ruby
26
+ client = Cronit::Cronit.new('12341234-1234-1234-1234-123412341234')
27
+ ```
32
28
 
33
- ## Contributing
29
+ Then, use it to interact with your cron jobs:
34
30
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/cronit.
31
+ ```ruby
32
+ client.list_crons
33
+ client.run_cron(cron_id)
34
+ client.toggle_cron(cron_id)
35
+ ```
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cronit
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.3"
5
5
  end
data/lib/cronit.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "cronit/version"
4
-
4
+ require 'httparty'
5
5
 
6
6
  module Cronit
7
7
  class Error < StandardError; end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cronit