dieselup 1.0.0 → 1.0.1

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
  SHA1:
3
- metadata.gz: d02bead4937b5c120fa4cb9aa20bc862854f6c81
4
- data.tar.gz: d84b4578e89fc72b644da346369fad2a37f6caab
3
+ metadata.gz: 52be0c78bd191755e1db7b2fd627f4b72055162f
4
+ data.tar.gz: cfc96478c4b6d3e32e95587ce048545ba9392954
5
5
  SHA512:
6
- metadata.gz: 13470bfb795266768a76a59565cecbb035065d9b398feed614d0915c60fff87b27bb74760ccb7a6a25c6e5bc127aa162e45f463c6a529b9a5436380d76ab3198
7
- data.tar.gz: 1daa8de6051af0bc5a3527b5235e329125f058bfaf5ec8d5f339b411d9844de7d7caabbca982a2c10d5e0a282f42e69d2bbaebbd608d5f09251c6896c9c93a17
6
+ metadata.gz: afb107d0284da6b0755325b2ecfe32e419f3ccec93c8aa2c2213fa713dbae8ca7132e19d8cf2d4282cdf4b2d63ba0f847dba4bc7333e1114127ef45aad1d30d5
7
+ data.tar.gz: f686d900163f222416e59bdeff5c13434ecff22c2a8f184606a3e81316f5b9e53c51ee065c37daa1662ff3fd8a249f6f8ce7b40fea5b4cc7a842d071cb6b0e7f
data/README.md CHANGED
@@ -1,36 +1,43 @@
1
- # Dieselup
1
+ DIESELUP [![Build Status](https://travis-ci.org/xcopy/dieselup-ruby.svg?branch=master)](https://travis-ci.org/xcopy/dieselup-ruby) [![Gem Version](https://badge.fury.io/rb/dieselup.svg)](https://badge.fury.io/rb/dieselup)
2
+ ========
2
3
 
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/dieselup`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+ System requirements
5
+ -------------------
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
7
+ * *nix
8
+ * Git
9
+ * RVM
6
10
 
7
- ## Installation
11
+ Usage
12
+ -----
8
13
 
9
- Add this line to your application's Gemfile:
14
+ Developers:
10
15
 
11
- ```ruby
12
- gem 'dieselup'
16
+ ```shell
17
+ $ cd
18
+ $ git clone git@github.com:xcopy/dieselup-ruby.git dieselup
19
+ $ cd dieselup
20
+ $ bundle
21
+ $ USERNAME=your-username PASSWORD=your-password bundle exec bin/dieselup <your-topic-ID>
13
22
  ```
14
23
 
15
- And then execute:
24
+ Common users:
16
25
 
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install dieselup
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
+ ```shell
27
+ $ gem install dieselup --no-ri --no-rdoc
28
+ $ USERNAME=your-username PASSWORD=your-password dieselup <your-topic-ID>
29
+ ```
26
30
 
27
- ## Development
31
+ Cron task example:
28
32
 
29
- 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.
33
+ ```shell
34
+ */1 * * * * USERNAME=your-username PASSWORD=your-password dieselup <your-topic-ID> > /dev/null 2>&1
35
+ ```
30
36
 
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` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+ That's it!
32
38
 
33
- ## Contributing
39
+ Contributing
40
+ ------------
34
41
 
35
42
  1. Fork it ( https://github.com/[my-github-username]/dieselup/fork )
36
43
  2. Create your feature branch (`git checkout -b my-new-feature`)
data/lib/dieselup/base.rb CHANGED
@@ -53,7 +53,7 @@ module Dieselup
53
53
 
54
54
  http = Net::HTTP.new(uri.host, uri.port)
55
55
  http.use_ssl = uri.scheme == 'https'
56
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
56
+ http.verify_mode = 0
57
57
 
58
58
  if method.upcase == 'POST'
59
59
  request = Net::HTTP::Post.new(uri.request_uri)
@@ -1,3 +1,3 @@
1
1
  module Dieselup
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
data/lib/dieselup.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+ require 'net/http'
1
3
  require 'nokogiri'
2
4
  require 'dotenv'
3
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dieselup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kairat Jenishev