luka_logger 0.1.0 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b02f7159af843fef76db7eadd2d8d996e9942ce32b283d765749eb020cd19ba
4
- data.tar.gz: 8e4a891747a5ef2a49891daa76aa64178319ebe780bd36b8fdcde96a764a2485
3
+ metadata.gz: ee3e474d4a7e3e3feca4e2e9513a2de5d708ebfaddac2a16e2686a05d6a4a116
4
+ data.tar.gz: 9ee4ce6a137f5c2b9ea724b099b0caf2b950b7c2c36940427b51d2a0aef0c6df
5
5
  SHA512:
6
- metadata.gz: 8f703fa6da1501685acf802d894cf6bf143127b44f5f16c9831b157d3309f6965843eb37f68e840d2bb3bd19e67cb915c12bccb3f542e46fd446fa0c1134d036
7
- data.tar.gz: 25b5b8a509e8a84a2f405c696bfac55a6a45f0c21eed2eed4074c0e34b055216a0a0d79104af809391b532be8a82c2d97a8bd2276cfe426393aa274c66d13c5c
6
+ metadata.gz: 5205dd75582b8b371755caf9c59a4bedf41f7b003a5b255b209de27c56dbcffe0bbad53c68cd16421b45544f4d0f3947563db8947024188db23c80197072e1f1
7
+ data.tar.gz: 6bacbf331f7be8f3b8f47f4b70349008b16f7b3bc9d3eb071780c59f74b8af85553c7bb90ae5bc078d820d608b32e1c50b0d60572a40b8df850da7687d6ef8fc
File without changes
data/.idea/modules.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <project version="4">
3
3
  <component name="ProjectModuleManager">
4
4
  <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/http_logger.iml" filepath="$PROJECT_DIR$/.idea/http_logger.iml" />
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/luka_logger.iml" filepath="$PROJECT_DIR$/.idea/luka_logger.iml" />
6
6
  </modules>
7
7
  </component>
8
8
  </project>
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="659e083b-9557-450d-9d98-afb5009404ba" name="Changes" comment="">
5
+ <change beforePath="$PROJECT_DIR$/Gemfile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/Gemfile.lock" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/lib/luka_logger/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/luka_logger/version.rb" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/luka_logger.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/luka_logger.gemspec" afterDir="false" />
8
+ </list>
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="Git.Settings">
15
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
16
+ </component>
17
+ <component name="MarkdownSettingsMigration">
18
+ <option name="stateVersion" value="1" />
19
+ </component>
20
+ <component name="ProjectId" id="223GIMnuQTMIs6bMzWRNzaE1TPB" />
21
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true">
22
+ <ConfirmationsSetting value="2" id="Add" />
23
+ </component>
24
+ <component name="ProjectViewState">
25
+ <option name="hideEmptyMiddlePackages" value="true" />
26
+ <option name="showLibraryContents" value="true" />
27
+ </component>
28
+ <component name="PropertiesComponent">
29
+ <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
30
+ <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
31
+ <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
32
+ <property name="WebServerToolWindowFactoryState" value="false" />
33
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
34
+ </component>
35
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
36
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" RAKE_SPRING_PRE_LOADER_OPTION="true" RAILS_SPRING_PRE_LOADER_OPTION="true" />
37
+ <component name="TaskManager">
38
+ <task active="true" id="Default" summary="Default task">
39
+ <changelist id="659e083b-9557-450d-9d98-afb5009404ba" name="Changes" comment="" />
40
+ <created>1639058777079</created>
41
+ <option name="number" value="Default" />
42
+ <option name="presentableId" value="Default" />
43
+ <updated>1639058777079</updated>
44
+ <workItem from="1639058778398" duration="741000" />
45
+ </task>
46
+ <task id="LOCAL-00001" summary="v0.1.2">
47
+ <created>1639059297308</created>
48
+ <option name="number" value="00001" />
49
+ <option name="presentableId" value="LOCAL-00001" />
50
+ <option name="project" value="LOCAL" />
51
+ <updated>1639059297308</updated>
52
+ </task>
53
+ <task id="LOCAL-00002" summary="v0.1.2">
54
+ <created>1639059316093</created>
55
+ <option name="number" value="00002" />
56
+ <option name="presentableId" value="LOCAL-00002" />
57
+ <option name="project" value="LOCAL" />
58
+ <updated>1639059316093</updated>
59
+ </task>
60
+ <option name="localTasksCounter" value="3" />
61
+ <servers />
62
+ </component>
63
+ <component name="TypeScriptGeneratedFilesManager">
64
+ <option name="version" value="3" />
65
+ </component>
66
+ <component name="VcsManagerConfiguration">
67
+ <option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
68
+ <MESSAGE value="v0.1.2" />
69
+ <option name="LAST_COMMIT_MESSAGE" value="v0.1.2" />
70
+ </component>
71
+ </project>
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ luka_logger (0.1.4)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ domain_name (0.5.20190701)
10
+ unf (>= 0.0.5, < 1.0.0)
11
+ http-accept (1.7.0)
12
+ http-cookie (1.0.4)
13
+ domain_name (~> 0.5)
14
+ mime-types (3.4.1)
15
+ mime-types-data (~> 3.2015)
16
+ mime-types-data (3.2021.1115)
17
+ netrc (0.11.0)
18
+ rake (10.5.0)
19
+ rest-client (2.1.0)
20
+ http-accept (>= 1.7.0, < 2.0)
21
+ http-cookie (>= 1.0.2, < 2.0)
22
+ mime-types (>= 1.16, < 4.0)
23
+ netrc (~> 0.8)
24
+ unf (0.1.4)
25
+ unf_ext
26
+ unf_ext (0.0.8)
27
+
28
+ PLATFORMS
29
+ ruby
30
+
31
+ DEPENDENCIES
32
+ bundler (~> 1.17)
33
+ luka_logger!
34
+ rake (~> 10.0)
35
+ rest-client (~> 2.1.0)
36
+
37
+ BUNDLED WITH
38
+ 1.17.3
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # LukaLogger
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/luka_logger`. To experiment with that code, run `bin/console` for an interactive prompt.
4
3
 
5
- TODO: Delete this and the text above, and describe your gem
6
4
 
7
5
  ## Installation
8
6
 
@@ -1,3 +1,3 @@
1
1
  module LukaLogger
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/luka_logger.rb CHANGED
@@ -3,7 +3,7 @@ require "luka_logger/version"
3
3
  module LukaLogger
4
4
  class Error < StandardError; end
5
5
  # Your code goes here...
6
- def send(data, server_port)
6
+ def self.send(data, server_port)
7
7
  RestClient.post("http://localhost:#{server_port}", data.to_json, headers={})
8
8
  end
9
9
  end
data/luka_logger.gemspec CHANGED
@@ -9,9 +9,10 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["luka"]
10
10
  spec.email = ["luka@bizant.si"]
11
11
 
12
- spec.summary = %q{Write a short summary, because RubyGems requires one.}
13
- spec.description = %q{Write a longer description or delete this line.}
14
- spec.homepage = "https://prelom.si"
12
+ spec.summary = %q{A gem that replaces Rails.logger.info command.}
13
+ spec.description = %q{HTTP logger.}
14
+ spec.required_ruby_version = ">=2.6.3"
15
+ spec.homepage = "https://gitlab.com/luksimir/luka_logger"
15
16
  spec.license = "MIT"
16
17
 
17
18
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
@@ -20,7 +21,7 @@ Gem::Specification.new do |spec|
20
21
  # spec.metadata["allowed_push_host"] = "http://mygemserver.com'"
21
22
 
22
23
  spec.metadata["homepage_uri"] = spec.homepage
23
- spec.metadata["source_code_uri"] = "https://gitlab.com"
24
+ spec.metadata["source_code_uri"] = "https://gitlab.com/luksimir/luka_logger"
24
25
  # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
26
  else
26
27
  raise "RubyGems 2.0 or newer is required to protect against " \
@@ -38,5 +39,5 @@ Gem::Specification.new do |spec|
38
39
 
39
40
  spec.add_development_dependency "bundler", "~> 1.17"
40
41
  spec.add_development_dependency "rake", "~> 10.0"
41
- spec.add_development_dependency "rest-client"
42
+ spec.add_development_dependency "rest-client", "~> 2.1.0"
42
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luka_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - luka
@@ -42,17 +42,17 @@ dependencies:
42
42
  name: rest-client
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.1.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
55
- description: Write a longer description or delete this line.
54
+ version: 2.1.0
55
+ description: HTTP logger.
56
56
  email:
57
57
  - luka@bizant.si
58
58
  executables: []
@@ -60,12 +60,13 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
- - ".idea/.gitignore"
64
- - ".idea/http_logger.iml"
63
+ - ".idea/luka_logger.iml"
65
64
  - ".idea/misc.xml"
66
65
  - ".idea/modules.xml"
67
66
  - ".idea/vcs.xml"
67
+ - ".idea/workspace.xml"
68
68
  - Gemfile
69
+ - Gemfile.lock
69
70
  - LICENSE.txt
70
71
  - README.md
71
72
  - Rakefile
@@ -74,12 +75,12 @@ files:
74
75
  - lib/luka_logger.rb
75
76
  - lib/luka_logger/version.rb
76
77
  - luka_logger.gemspec
77
- homepage: https://prelom.si
78
+ homepage: https://gitlab.com/luksimir/luka_logger
78
79
  licenses:
79
80
  - MIT
80
81
  metadata:
81
- homepage_uri: https://prelom.si
82
- source_code_uri: https://gitlab.com
82
+ homepage_uri: https://gitlab.com/luksimir/luka_logger
83
+ source_code_uri: https://gitlab.com/luksimir/luka_logger
83
84
  post_install_message:
84
85
  rdoc_options: []
85
86
  require_paths:
@@ -88,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
90
  - - ">="
90
91
  - !ruby/object:Gem::Version
91
- version: '0'
92
+ version: 2.6.3
92
93
  required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - ">="
@@ -98,5 +99,5 @@ requirements: []
98
99
  rubygems_version: 3.0.6
99
100
  signing_key:
100
101
  specification_version: 4
101
- summary: Write a short summary, because RubyGems requires one.
102
+ summary: A gem that replaces Rails.logger.info command.
102
103
  test_files: []
data/.idea/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- # Default ignored files
2
- /shelf/
3
- /workspace.xml
4
- # Editor-based HTTP Client requests
5
- /httpRequests/
6
- # Datasource local storage ignored files
7
- /dataSources/
8
- /dataSources.local.xml