Skip to content

Commit 1931aaa

Browse files
committed
Ruby code
1 parent a8bffa7 commit 1931aaa

21 files changed

+1534
-0
lines changed

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Unnecessary RubyMine files
2+
.idea/

cielo24_cli/bin/cielo24cli

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env ruby
2+
3+
require 'cielo24'
4+
require_relative '../lib/cielo24_cli/application'
5+
include Cielo24Cli
6+
7+
begin
8+
Application.start(ARGV)
9+
rescue ArgumentError => e
10+
puts 'ERROR: ' + e.message
11+
exit(1)
12+
rescue Cielo24::WebError => e
13+
puts 'ERROR: ' + e.message
14+
exit(1)
15+
end

cielo24_cli/cielo24-cli-0.0.5.gem

7.5 KB
Binary file not shown.

cielo24_cli/cielo24_cli.gemspec

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# coding: utf-8
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'cielo24_cli/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'cielo24-cli'
8+
spec.version = Cielo24CLI::VERSION
9+
spec.authors = ['cielo24']
10+
spec.email = ['[email protected]']
11+
spec.summary = %q{Command line interface to cielo24 gem.}
12+
spec.description = %q{Command line interface that allows you to make REST API calls using cielo24 gem.}
13+
spec.homepage = 'http://cielo24.com'
14+
#spec.license = 'MIT'
15+
16+
spec.files = Dir['lib/cielo24_cli/*.rb'] + Dir['lib/*.rb']
17+
spec.executables = ['cielo24cli'] #spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19+
spec.require_paths = ['lib']
20+
21+
spec.add_development_dependency 'bundler', '~> 1.10.6'
22+
23+
spec.add_dependency 'cielo24', '~> 0.0.15'
24+
spec.add_dependency 'thor', '~> 0.19.1'
25+
end

cielo24_cli/lib/cielo24_cli.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'cielo24_cli/application'
2+
3+
module Cielo24CLI
4+
end

0 commit comments

Comments
 (0)